Skip to content

Commit 57be1a3

Browse files
committed
Wheezy 2.7
1 parent db08f8d commit 57be1a3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

2.7/wheezy/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM buildpack-deps:wheezy
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 2.7.8
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+
&& curl -SL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
22+
&& find /usr/local \
23+
\( -type d -a -name test -o -name tests \) \
24+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
25+
-exec rm -rf '{}' + \
26+
&& rm -rf /usr/src/python
27+
28+
# install "virtualenv", since the vast majority of users of this image will want it
29+
RUN pip install virtualenv
30+
31+
CMD ["python2"]

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