This repository was archived by the owner on Mar 28, 2019. It is now read-only.
File tree 2 files changed +24
-4
lines changed 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,17 @@ ENV PYTHON_VERSION 2.7.12
16
16
ENV PYTHON_PIP_VERSION 8.1.2
17
17
18
18
RUN set -ex \
19
- && apk add --no-cache --virtual .fetch-deps gnupg tar \
19
+ && buildDeps=' \
20
+ gnupg \
21
+ tar \
22
+ tcl-dev \
23
+ tk-dev \
24
+ ' \
25
+ && runDeps=' \
26
+ tcl \
27
+ tk \
28
+ ' \
29
+ && apk add --no-cache $runDeps $buildDeps \
20
30
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
21
31
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
22
32
&& export GNUPGHOME="$(mktemp -d)" \
@@ -41,7 +51,7 @@ RUN set -ex \
41
51
-o \
42
52
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
43
53
\) -exec rm -rf '{}' + \
44
- && apk del .fetch-deps \
54
+ && apk del $buildDeps \
45
55
&& rm -rf /usr/src/python ~/.cache
46
56
47
57
CMD ["python2" ]
Original file line number Diff line number Diff line change @@ -16,7 +16,17 @@ ENV PYTHON_VERSION 3.5.2
16
16
ENV PYTHON_PIP_VERSION 8.1.2
17
17
18
18
RUN set -ex \
19
- && apk add --no-cache --virtual .fetch-deps gnupg tar \
19
+ && buildDeps=' \
20
+ gnupg \
21
+ tar \
22
+ tcl-dev \
23
+ tk-dev \
24
+ ' \
25
+ && runDeps=' \
26
+ tcl \
27
+ tk \
28
+ ' \
29
+ && apk add --no-cache $runDeps $buildDeps \
20
30
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
21
31
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
22
32
&& export GNUPGHOME="$(mktemp -d)" \
@@ -40,7 +50,7 @@ RUN set -ex \
40
50
-o \
41
51
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
42
52
\) -exec rm -rf '{}' + \
43
- && apk del .fetch-deps \
53
+ && apk del $buildDeps \
44
54
&& rm -rf /usr/src/python ~/.cache
45
55
46
56
# make some useful symlinks that are expected to exist
You can’t perform that action at this time.
0 commit comments