Skip to content

Commit d92b2e0

Browse files
author
Jonathan Stewmon
committed
use Ned Deily's gpg key
1 parent 635ea5d commit d92b2e0

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

3.6/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ RUN apt-get purge -y python.*
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10+
# gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected]>" imported
11+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
12+
1013
ENV PYTHON_VERSION 3.6.0a2
1114

1215
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -16,7 +19,7 @@ RUN set -ex \
1619
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
1720
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
1821
&& 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" \
2023
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
2124
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
2225
&& mkdir -p /usr/src/python \

3.6/alpine/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ FROM alpine:3.4
44
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
55
ENV LANG C.UTF-8
66

7+
# gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected]>" imported
8+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
9+
710
ENV PYTHON_VERSION 3.6.0a2
811

912
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
@@ -14,7 +17,7 @@ RUN set -ex \
1417
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
1518
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
1619
&& 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" \
1821
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
1922
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
2023
&& mkdir -p /usr/src \

3.6/slim/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ RUN apt-get purge -y python.*
77
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
88
ENV LANG C.UTF-8
99

10+
# gpg: key AA65421D: public key "Ned Deily (Python release signing key) <[email protected]>" imported
11+
ENV GPG_KEY 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
12+
1013
RUN apt-get update && apt-get install -y --no-install-recommends \
1114
ca-certificates \
1215
libsqlite3-0 \
@@ -37,7 +40,7 @@ RUN set -ex \
3740
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
3841
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
3942
&& 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" \
4144
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
4245
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
4346
&& mkdir -p /usr/src/python \

0 commit comments

Comments
 (0)