File tree Expand file tree Collapse file tree 4 files changed +22
-12
lines changed Expand file tree Collapse file tree 4 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ ENV PYPY_VERSION 5.4.0
12
12
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
- RUN set -x \
16
- && curl -SL "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-linux64.tar.bz2" \
15
+ RUN set -ex \
16
+ && wget -O- "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-linux64.tar.bz2" \
17
17
| tar -xjC /usr/local --strip-components=1 \
18
18
\
19
19
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ ENV PYPY_VERSION 5.4.0
18
18
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
19
19
ENV PYTHON_PIP_VERSION 8.1.2
20
20
21
- RUN set -x \
22
- && apt-get update && apt-get install -y bzip2 curl --no-install-recommends && rm -rf /var/lib/apt/lists/* \
23
- && curl -SL "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-linux64.tar.bz2" \
21
+ RUN set -ex \
22
+ && fetchDeps=' \
23
+ bzip2 \
24
+ wget \
25
+ ' \
26
+ && apt-get update && apt-get install -y $fetchDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
27
+ \
28
+ && wget -O- "https://bitbucket.org/pypy/pypy/downloads/pypy2-v${PYPY_VERSION}-linux64.tar.bz2" \
24
29
| tar -xjC /usr/local --strip-components=1 \
25
30
\
26
31
&& wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
@@ -34,7 +39,7 @@ RUN set -x \
34
39
# https://github.com/docker-library/python/pull/100
35
40
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
36
41
\
37
- && apt-get purge -y --auto-remove bzip2 curl \
42
+ && apt-get purge -y --auto-remove $fetchDeps \
38
43
&& rm -rf ~/.cache
39
44
40
45
CMD ["pypy" ]
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ ENV PYPY_VERSION 5.2.0-alpha1
12
12
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
- RUN set -x \
16
- && curl -SL "https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v${PYPY_VERSION}-linux64.tar.bz2" \
15
+ RUN set -ex \
16
+ && wget -O- "https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v${PYPY_VERSION}-linux64.tar.bz2" \
17
17
| tar -xjC /usr/local --strip-components=1 \
18
18
\
19
19
# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere
Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ ENV PYPY_VERSION 5.2.0-alpha1
18
18
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
19
19
ENV PYTHON_PIP_VERSION 8.1.2
20
20
21
- RUN set -x \
22
- && apt-get update && apt-get install -y bzip2 curl wget --no-install-recommends && rm -rf /var/lib/apt/lists/* \
23
- && curl -SL "https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v${PYPY_VERSION}-linux64.tar.bz2" \
21
+ RUN set -ex \
22
+ && fetchDeps=' \
23
+ bzip2 \
24
+ wget \
25
+ ' \
26
+ && apt-get update && apt-get install -y $fetchDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
27
+ \
28
+ && wget -O- "https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v${PYPY_VERSION}-linux64.tar.bz2" \
24
29
| tar -xjC /usr/local --strip-components=1 \
25
30
\
26
31
# explicit path to "pip3" to ensure distribution-provided "pip3" cannot interfere
@@ -37,7 +42,7 @@ RUN set -x \
37
42
# https://github.com/docker-library/python/pull/100
38
43
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == " pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ] \
39
44
\
40
- && apt-get purge -y --auto-remove bzip2 curl wget \
45
+ && apt-get purge -y --auto-remove $fetchDeps \
41
46
&& rm -rf ~/.cache
42
47
43
48
CMD ["pypy3" ]
You can’t perform that action at this time.
0 commit comments