File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ RUN apt-get purge -y python.*
7
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
8
ENV LANG C.UTF-8
9
9
10
+ # gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected] >" imported
11
+ ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
12
+
10
13
ENV PYTHON_VERSION 3.6.0a2
11
14
12
15
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -16,7 +19,7 @@ RUN set -ex \
16
19
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
17
20
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
18
21
&& export GNUPGHOME="$(mktemp -d)" \
19
- && curl -fSL https://www.python.org/static/files/pubkeys.txt | gpg --import \
22
+ && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
20
23
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
21
24
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
22
25
&& mkdir -p /usr/src/python \
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ FROM alpine:3.4
4
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
5
5
ENV LANG C.UTF-8
6
6
7
+ # gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected] >" imported
8
+ ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
9
+
7
10
ENV PYTHON_VERSION 3.6.0a2
8
11
9
12
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -14,7 +17,7 @@ RUN set -ex \
14
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
15
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
16
19
&& export GNUPGHOME="$(mktemp -d)" \
17
- && curl -fSL https://www.python.org/static/files/pubkeys.txt | gpg --import \
20
+ && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
18
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
19
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
20
23
&& mkdir -p /usr/src \
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ RUN apt-get purge -y python.*
7
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
8
ENV LANG C.UTF-8
9
9
10
+ # gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected] >" imported
11
+ ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
12
+
10
13
RUN apt-get update && apt-get install -y --no-install-recommends \
11
14
ca-certificates \
12
15
libsqlite3-0 \
@@ -37,7 +40,7 @@ RUN set -ex \
37
40
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
38
41
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
39
42
&& export GNUPGHOME="$(mktemp -d)" \
40
- && curl -fSL https://www.python.org/static/files/pubkeys.txt | gpg --import \
43
+ && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
41
44
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
42
45
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
43
46
&& mkdir -p /usr/src/python \
You can’t perform that action at this time.
0 commit comments