content: # See http://bugs.python.org/issue19846
  ENV LANG C.UTF-8
  ARG PYTHON=python3
  
  RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
      curl \
      software-properties-common
  
  RUN add-apt-repository ppa:deadsnakes/ppa
  
  RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
      ${PYTHON}
  
  RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
  
  RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
      pip \
      setuptools
  
  # Some TF tools expect a "python" binary
  RUN ln -sf $(which ${PYTHON}) /usr/local/bin/python && \
      ln -sf $(which ${PYTHON}) /usr/local/bin/python3 && \
      ln -sf $(which ${PYTHON}) /usr/bin/python && \
      ln -sf $(which ${PYTHON}) /usr/bin/python3
  