Wheezy 3.3
This commit is contained in:
parent
57be1a3fd7
commit
8d45b76631
|
@ -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"]
|
Loading…
Reference in New Issue