File tree 15 files changed +19
-121
lines changed
15 files changed +19
-121
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ ENV LANG C.UTF-8
15
15
# https://github.com/docker-library/python/issues/147
16
16
ENV PYTHONIOENCODING UTF-8
17
17
18
- # install ca-certificates so that HTTPS works consistently
19
- # the other runtime dependencies for Python are installed later
18
+ # install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
20
19
RUN apk add --no-cache ca-certificates
21
20
22
21
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
@@ -97,12 +96,10 @@ ENV PYTHON_PIP_VERSION 18.0
97
96
98
97
RUN set -ex; \
99
98
\
100
- apk add --no-cache --virtual .fetch-deps libressl; \
99
+ apk add --no-cache --virtual .fetch-deps libressl; trap 'apk del .fetch-deps' EXIT; \
101
100
\
102
101
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
103
102
\
104
- apk del .fetch-deps; \
105
- \
106
103
python get-pip.py \
107
104
--disable-pip-version-check \
108
105
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -15,17 +15,12 @@ ENV LANG C.UTF-8
15
15
# https://github.com/docker-library/python/issues/147
16
16
ENV PYTHONIOENCODING UTF-8
17
17
18
- # install ca-certificates so that HTTPS works consistently
19
- # the other runtime dependencies for Python are installed later
20
- RUN apk add --no-cache ca-certificates
21
-
22
18
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
23
19
ENV PYTHON_VERSION 2.7.15
24
20
25
21
RUN set -ex \
26
22
&& apk add --no-cache --virtual .fetch-deps \
27
23
gnupg \
28
- libressl \
29
24
tar \
30
25
xz \
31
26
\
@@ -49,7 +44,6 @@ RUN set -ex \
49
44
gdbm-dev \
50
45
libc-dev \
51
46
libnsl-dev \
52
- libressl \
53
47
libressl-dev \
54
48
libtirpc-dev \
55
49
linux-headers \
@@ -98,13 +92,9 @@ RUN set -ex \
98
92
ENV PYTHON_PIP_VERSION 18.0
99
93
100
94
RUN set -ex; \
101
- \
102
- apk add --no-cache --virtual .fetch-deps libressl; \
103
95
\
104
96
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
105
97
\
106
- apk del .fetch-deps; \
107
- \
108
98
python get-pip.py \
109
99
--disable-pip-version-check \
110
100
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -15,17 +15,12 @@ ENV LANG C.UTF-8
15
15
# https://github.com/docker-library/python/issues/147
16
16
ENV PYTHONIOENCODING UTF-8
17
17
18
- # install ca-certificates so that HTTPS works consistently
19
- # the other runtime dependencies for Python are installed later
20
- RUN apk add --no-cache ca-certificates
21
-
22
18
ENV GPG_KEY C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
23
19
ENV PYTHON_VERSION 2.7.15
24
20
25
21
RUN set -ex \
26
22
&& apk add --no-cache --virtual .fetch-deps \
27
23
gnupg \
28
- libressl \
29
24
tar \
30
25
xz \
31
26
\
@@ -49,7 +44,6 @@ RUN set -ex \
49
44
gdbm-dev \
50
45
libc-dev \
51
46
libnsl-dev \
52
- libressl \
53
47
libressl-dev \
54
48
libtirpc-dev \
55
49
linux-headers \
@@ -98,13 +92,9 @@ RUN set -ex \
98
92
ENV PYTHON_PIP_VERSION 18.0
99
93
100
94
RUN set -ex; \
101
- \
102
- apk add --no-cache --virtual .fetch-deps libressl; \
103
95
\
104
96
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
105
97
\
106
- apk del .fetch-deps; \
107
- \
108
98
python get-pip.py \
109
99
--disable-pip-version-check \
110
100
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
21
17
ENV PYTHON_VERSION 3.4.8
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- libressl \
27
22
tar \
28
23
xz \
29
24
\
@@ -48,7 +43,6 @@ RUN set -ex \
48
43
gdbm-dev \
49
44
libc-dev \
50
45
libffi-dev \
51
- libressl \
52
46
libressl-dev \
53
47
linux-headers \
54
48
make \
@@ -107,13 +101,9 @@ RUN cd /usr/local/bin \
107
101
ENV PYTHON_PIP_VERSION 18.0
108
102
109
103
RUN set -ex; \
110
- \
111
- apk add --no-cache --virtual .fetch-deps libressl; \
112
104
\
113
105
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
114
106
\
115
- apk del .fetch-deps; \
116
- \
117
107
python get-pip.py \
118
108
--disable-pip-version-check \
119
109
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
21
17
ENV PYTHON_VERSION 3.4.8
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- libressl \
27
22
tar \
28
23
xz \
29
24
\
@@ -48,7 +43,6 @@ RUN set -ex \
48
43
gdbm-dev \
49
44
libc-dev \
50
45
libffi-dev \
51
- libressl \
52
46
libressl-dev \
53
47
linux-headers \
54
48
make \
@@ -107,13 +101,9 @@ RUN cd /usr/local/bin \
107
101
ENV PYTHON_PIP_VERSION 18.0
108
102
109
103
RUN set -ex; \
110
- \
111
- apk add --no-cache --virtual .fetch-deps libressl; \
112
104
\
113
105
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
114
106
\
115
- apk del .fetch-deps; \
116
- \
117
107
python get-pip.py \
118
108
--disable-pip-version-check \
119
109
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
21
17
ENV PYTHON_VERSION 3.5.5
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- libressl \
27
22
tar \
28
23
xz \
29
24
\
@@ -48,7 +43,6 @@ RUN set -ex \
48
43
gdbm-dev \
49
44
libc-dev \
50
45
libffi-dev \
51
- libressl \
52
46
libressl-dev \
53
47
linux-headers \
54
48
make \
@@ -107,13 +101,9 @@ RUN cd /usr/local/bin \
107
101
ENV PYTHON_PIP_VERSION 18.0
108
102
109
103
RUN set -ex; \
110
- \
111
- apk add --no-cache --virtual .fetch-deps libressl; \
112
104
\
113
105
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
114
106
\
115
- apk del .fetch-deps; \
116
- \
117
107
python get-pip.py \
118
108
--disable-pip-version-check \
119
109
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
21
17
ENV PYTHON_VERSION 3.5.5
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- openssl \
27
22
tar \
28
23
xz \
29
24
\
@@ -48,7 +43,6 @@ RUN set -ex \
48
43
gdbm-dev \
49
44
libc-dev \
50
45
libffi-dev \
51
- openssl \
52
46
openssl-dev \
53
47
linux-headers \
54
48
make \
@@ -107,13 +101,9 @@ RUN cd /usr/local/bin \
107
101
ENV PYTHON_PIP_VERSION 18.0
108
102
109
103
RUN set -ex; \
110
- \
111
- apk add --no-cache --virtual .fetch-deps openssl; \
112
104
\
113
105
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
114
106
\
115
- apk del .fetch-deps; \
116
- \
117
107
python get-pip.py \
118
108
--disable-pip-version-check \
119
109
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
16
+ # install ca-certificates so that HTTPS works consistently (other runtime dependencies for Python are installed later); only needed on Alpine 3.6 (3.7+ includes these in the base)
18
17
RUN apk add --no-cache ca-certificates
19
18
20
19
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
@@ -108,12 +107,10 @@ ENV PYTHON_PIP_VERSION 18.0
108
107
109
108
RUN set -ex; \
110
109
\
111
- apk add --no-cache --virtual .fetch-deps libressl; \
110
+ apk add --no-cache --virtual .fetch-deps libressl; trap 'apk del .fetch-deps' EXIT; \
112
111
\
113
112
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
114
113
\
115
- apk del .fetch-deps; \
116
- \
117
114
python get-pip.py \
118
115
--disable-pip-version-check \
119
116
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
21
17
ENV PYTHON_VERSION 3.6.6
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- libressl \
27
22
tar \
28
23
xz \
29
24
\
@@ -49,7 +44,6 @@ RUN set -ex \
49
44
libc-dev \
50
45
libffi-dev \
51
46
libnsl-dev \
52
- libressl \
53
47
libressl-dev \
54
48
libtirpc-dev \
55
49
linux-headers \
@@ -109,13 +103,9 @@ RUN cd /usr/local/bin \
109
103
ENV PYTHON_PIP_VERSION 18.0
110
104
111
105
RUN set -ex; \
112
- \
113
- apk add --no-cache --virtual .fetch-deps libressl; \
114
106
\
115
107
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
116
108
\
117
- apk del .fetch-deps; \
118
- \
119
109
python get-pip.py \
120
110
--disable-pip-version-check \
121
111
--no-cache-dir \
Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ ENV PATH /usr/local/bin:$PATH
13
13
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
14
14
ENV LANG C.UTF-8
15
15
16
- # install ca-certificates so that HTTPS works consistently
17
- # the other runtime dependencies for Python are installed later
18
- RUN apk add --no-cache ca-certificates
19
-
20
16
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
21
17
ENV PYTHON_VERSION 3.6.6
22
18
23
19
RUN set -ex \
24
20
&& apk add --no-cache --virtual .fetch-deps \
25
21
gnupg \
26
- libressl \
27
22
tar \
28
23
xz \
29
24
\
@@ -49,7 +44,6 @@ RUN set -ex \
49
44
libc-dev \
50
45
libffi-dev \
51
46
libnsl-dev \
52
- libressl \
53
47
libressl-dev \
54
48
libtirpc-dev \
55
49
linux-headers \
@@ -109,13 +103,9 @@ RUN cd /usr/local/bin \
109
103
ENV PYTHON_PIP_VERSION 18.0
110
104
111
105
RUN set -ex; \
112
- \
113
- apk add --no-cache --virtual .fetch-deps libressl; \
114
106
\
115
107
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py' ; \
116
108
\
117
- apk del .fetch-deps; \
118
- \
119
109
python get-pip.py \
120
110
--disable-pip-version-check \
121
111
--no-cache-dir \
You can’t perform that action at this time.
0 commit comments