Skip to content

Commit 9d2859c

Browse files
committed
Add initial python2 Dockerfile
1 parent 9eb9ef6 commit 9d2859c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

2/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM buildpack-deps
2+
3+
RUN apt-get update && apt-get install -y curl procps
4+
5+
# remove several traces of debian python
6+
RUN apt-get purge -y python python-minimal python2.7-minimal
7+
8+
RUN mkdir /usr/src/python
9+
WORKDIR /usr/src/python
10+
RUN curl -SL https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tar.xz \
11+
| tar -xJ --strip-components=1 \
12+
&& ./configure \
13+
&& make -j$(nproc) \
14+
&& make -j$(nproc) EXTRATESTOPTS='--exclude test_file2k' test \
15+
&& make install \
16+
&& make clean
17+
18+
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