diff --git a/3.3/wheezy/Dockerfile b/3.3/wheezy/Dockerfile new file mode 100644 index 0000000..58f344b --- /dev/null +++ b/3.3/wheezy/Dockerfile @@ -0,0 +1,35 @@ +FROM buildpack-deps:wheezy + +# 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 PYTHON_VERSION 3.3.6 + +RUN set -x \ + && mkdir -p /usr/src/python \ + && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \ + | tar -xJC /usr/src/python --strip-components=1 \ + && cd /usr/src/python \ + && ./configure --enable-shared \ + && make -j$(nproc) \ + && make install \ + && ldconfig \ + && curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python3 \ + && find /usr/local \ + \( -type d -a -name test -o -name tests \) \ + -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ + -exec rm -rf '{}' + \ + && rm -rf /usr/src/python + +# make some useful symlinks that are expected to exist +RUN cd /usr/local/bin \ + && ln -s idle3 idle \ + && ln -s pydoc3 pydoc \ + && ln -s python3 python \ + && ln -s python-config3 python-config + +CMD ["python3"]