Skip to content

Commit 11da949

Browse files
committed
Wheezy 3.4
1 parent 8d45b76 commit 11da949

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

3.4/wheezy/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM buildpack-deps:jessie
2+
3+
# remove several traces of debian python
4+
RUN apt-get purge -y python.*
5+
6+
# http://bugs.python.org/issue19846
7+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8+
ENV LANG C.UTF-8
9+
10+
ENV PYTHON_VERSION 3.4.2
11+
12+
RUN set -x \
13+
&& mkdir -p /usr/src/python \
14+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15+
| tar -xJC /usr/src/python --strip-components=1 \
16+
&& cd /usr/src/python \
17+
&& ./configure --enable-shared \
18+
&& make -j$(nproc) \
19+
&& make install \
20+
&& ldconfig \
21+
&& find /usr/local \
22+
\( -type d -a -name test -o -name tests \) \
23+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
24+
-exec rm -rf '{}' + \
25+
&& rm -rf /usr/src/python
26+
27+
# make some useful symlinks that are expected to exist
28+
RUN cd /usr/local/bin \
29+
&& ln -s easy_install-3.4 easy_install \
30+
&& ln -s idle3 idle \
31+
&& ln -s pip3 pip \
32+
&& ln -s pydoc3 pydoc \
33+
&& ln -s python3 python \
34+
&& ln -s python-config3 python-config
35+
36+
CMD ["python3"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy