File tree Expand file tree Collapse file tree 7 files changed +50
-14
lines changed Expand file tree Collapse file tree 7 files changed +50
-14
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
15
15
16
16
ENV PYTHON_VERSION 2.7.9
17
17
18
+ # gpg: key 18ADD4FF: public key "Benjamin Peterson <[email protected] >" imported
19
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
20
+
18
21
RUN set -x \
19
22
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
20
23
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
21
24
&& mkdir -p /usr/src/python \
22
- && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
23
- | tar -xJC /usr/src/python --strip-components=1 \
25
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
26
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27
+ && gpg --verify python.tar.xz.asc \
28
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
29
+ && rm python.tar.xz* \
24
30
&& cd /usr/src/python \
25
31
&& ./configure --enable-shared \
26
32
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -7,12 +7,18 @@ 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
- ENV PYTHON_VERSION 2.7.8
10
+ ENV PYTHON_VERSION 2.7.9
11
+
12
+ # gpg: key 18ADD4FF: public key "Benjamin Peterson <[email protected] >" imported
13
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF
11
14
12
15
RUN set -x \
13
16
&& 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* \
16
22
&& cd /usr/src/python \
17
23
&& ./configure --enable-shared \
18
24
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -15,12 +15,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
15
15
16
16
ENV PYTHON_VERSION 3.3.6
17
17
18
+ # gpg: key 36580288: public key "Georg Brandl (Python release signing key) <[email protected] >" imported
19
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C9FF0A5B101836580288
20
+
18
21
RUN set -x \
19
22
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
20
23
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
21
24
&& mkdir -p /usr/src/python \
22
- && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
23
- | tar -xJC /usr/src/python --strip-components=1 \
25
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
26
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27
+ && gpg --verify python.tar.xz.asc \
28
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
29
+ && rm python.tar.xz* \
24
30
&& cd /usr/src/python \
25
31
&& ./configure --enable-shared \
26
32
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -9,10 +9,16 @@ ENV LANG C.UTF-8
9
9
10
10
ENV PYTHON_VERSION 3.3.6
11
11
12
+ # gpg: key 36580288: public key "Georg Brandl (Python release signing key) <[email protected] >" imported
13
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 26DEA9D4613391EF3E25C9FF0A5B101836580288
14
+
12
15
RUN set -x \
13
16
&& 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* \
16
22
&& cd /usr/src/python \
17
23
&& ./configure --enable-shared \
18
24
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -15,12 +15,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
15
15
16
16
ENV PYTHON_VERSION 3.4.2
17
17
18
+ # gpg: key F73C700D: public key "Larry Hastings <[email protected] >" imported
19
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
20
+
18
21
RUN set -x \
19
22
&& buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev' \
20
23
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
21
24
&& mkdir -p /usr/src/python \
22
- && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
23
- | tar -xJC /usr/src/python --strip-components=1 \
25
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
26
+ && curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
27
+ && gpg --verify python.tar.xz.asc \
28
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
29
+ && rm python.tar.xz* \
24
30
&& cd /usr/src/python \
25
31
&& ./configure --enable-shared \
26
32
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -9,10 +9,16 @@ ENV LANG C.UTF-8
9
9
10
10
ENV PYTHON_VERSION 3.4.2
11
11
12
+ # gpg: key F73C700D: public key "Larry Hastings <[email protected] >" imported
13
+ RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A61ED3A5CA953F73C700D
14
+
12
15
RUN set -x \
13
16
&& 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* \
16
22
&& cd /usr/src/python \
17
23
&& ./configure --enable-shared \
18
24
&& make -j$(nproc) \
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ for version in "${versions[@]}"; do
15
15
fullVersion=" $( curl -sSL ' https://www.python.org/downloads/' | awk -F ' Python |</a>' ' /<span class="release-number"><a[^>]+>Python ' " $version " ' ./ { print $2 }' | sort -V | tail -1) "
16
16
(
17
17
set -x
18
- sed -ri ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' " $version /Dockerfile " " $version / slim/Dockerfile"
18
+ sed -ri ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' " $version " /{, slim/,wheezy/} Dockerfile
19
19
sed -ri ' s/^(FROM python):.*/\1:' " $fullVersion " ' /' " $version /onbuild/Dockerfile"
20
20
)
21
21
done
You can’t perform that action at this time.
0 commit comments