Skip to content

Commit 746b2e2

Browse files
committed
Merge pull request docker-library#34 from infosiftr/gpg-verification
Gpg verification
2 parents d550e29 + 04609e6 commit 746b2e2

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

2.7/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ ENV LANG C.UTF-8
99

1010
ENV PYTHON_VERSION 2.7.9
1111

12+
# gpg: key 18ADD4FF: public key "Benjamin Peterson <benjamin@python.org>" imported
13+
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
14+
1215
RUN set -x \
1316
&& mkdir -p /usr/src/python \
14-
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15-
| tar -xJC /usr/src/python --strip-components=1 \
17+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19+
&& gpg --verify python.tar.xz.asc \
20+
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
21+
&& rm python.tar.xz* \
1622
&& cd /usr/src/python \
1723
&& ./configure --enable-shared \
1824
&& make -j$(nproc) \

3.3/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ ENV LANG C.UTF-8
99

1010
ENV PYTHON_VERSION 3.3.6
1111

12+
# gpg: key 36580288: public key "Georg Brandl (Python release signing key) <georg@python.org>" imported
13+
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C9FF0A5B101836580288
14+
1215
RUN set -x \
1316
&& mkdir -p /usr/src/python \
14-
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15-
| tar -xJC /usr/src/python --strip-components=1 \
17+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19+
&& gpg --verify python.tar.xz.asc \
20+
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
21+
&& rm python.tar.xz* \
1622
&& cd /usr/src/python \
1723
&& ./configure --enable-shared \
1824
&& make -j$(nproc) \

3.4/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ ENV LANG C.UTF-8
99

1010
ENV PYTHON_VERSION 3.4.2
1111

12+
# gpg: key F73C700D: public key "Larry Hastings <larry@hastings.org>" imported
13+
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
14+
1215
RUN set -x \
1316
&& mkdir -p /usr/src/python \
14-
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
15-
| tar -xJC /usr/src/python --strip-components=1 \
17+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18+
&& curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19+
&& gpg --verify python.tar.xz.asc \
20+
&& tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
21+
&& rm python.tar.xz* \
1622
&& cd /usr/src/python \
1723
&& ./configure --enable-shared \
1824
&& make -j$(nproc) \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy