FROM buildpack-deps:jessie # remove several traces of debian python RUN apt-get purge -y python.* # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 ENV PYPY_VERSION 5.0.1 RUN set -x \ && curl -SL "https://bitbucket.org/pypy/pypy/downloads/pypy-${PYPY_VERSION}-linux64.tar.bz2" \ | tar -xjC /usr/local --strip-components=1 # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" ENV PYTHON_PIP_VERSION 8.1.1 RUN curl -SL 'https://bootstrap.pypa.io/get-pip.py' | pypy \ && pip install --upgrade pip==$PYTHON_PIP_VERSION CMD ["pypy"]