File tree Expand file tree Collapse file tree 18 files changed +69
-38
lines changed Expand file tree Collapse file tree 18 files changed +69
-38
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-shared \
32
+ --enable-unicode=ucs4 \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ ENV PYTHON_VERSION 2.7.12
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
15
RUN set -ex \
16
- && apk add --no-cache --virtual .fetch-deps curl gnupg \
16
+ && apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
17
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19
19
&& export GNUPGHOME="$(mktemp -d)" \
20
20
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
21
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
22
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
23
- && mkdir -p /usr/src \
24
- && tar -xJC /usr/src -f python.tar.xz \
25
- && mv "/usr/src/Python-$PYTHON_VERSION" /usr/src/python \
23
+ && mkdir -p /usr/src/python \
24
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
26
25
&& rm python.tar.xz \
27
26
\
28
27
&& apk add --no-cache --virtual .build-deps \
@@ -38,7 +37,9 @@ RUN set -ex \
38
37
sqlite-dev \
39
38
zlib-dev \
40
39
&& cd /usr/src/python \
41
- && ./configure --enable-shared --enable-unicode=ucs4 \
40
+ && ./configure \
41
+ --enable-shared \
42
+ --enable-unicode=ucs4 \
42
43
&& make -j$(getconf _NPROCESSORS_ONLN) \
43
44
&& make install \
44
45
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ RUN set -ex \
47
47
&& rm python.tar.xz \
48
48
\
49
49
&& cd /usr/src/python \
50
- && ./configure --enable-shared --enable-unicode=ucs4 \
50
+ && ./configure \
51
+ --enable-shared \
52
+ --enable-unicode=ucs4 \
51
53
&& make -j$(nproc) \
52
54
&& make install \
53
55
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-shared \
32
+ --enable-unicode=ucs4 \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ ENV PYTHON_VERSION 3.3.6
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
15
RUN set -ex \
16
- && apk add --no-cache --virtual .fetch-deps curl gnupg \
16
+ && apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
17
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19
19
&& export GNUPGHOME="$(mktemp -d)" \
20
20
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
21
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
22
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
23
- && mkdir -p /usr/src \
24
- && tar -xJC /usr/src -f python.tar.xz \
25
- && mv "/usr/src/Python-$PYTHON_VERSION" /usr/src/python \
23
+ && mkdir -p /usr/src/python \
24
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
26
25
&& rm python.tar.xz \
27
26
\
28
27
&& apk add --no-cache --virtual .build-deps \
@@ -39,7 +38,9 @@ RUN set -ex \
39
38
xz-dev \
40
39
zlib-dev \
41
40
&& cd /usr/src/python \
42
- && ./configure --enable-shared --enable-unicode=ucs4 \
41
+ && ./configure \
42
+ --enable-loadable-sqlite-extensions \
43
+ --enable-shared \
43
44
&& make -j$(getconf _NPROCESSORS_ONLN) \
44
45
&& make install \
45
46
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ RUN set -ex \
48
48
&& rm python.tar.xz \
49
49
\
50
50
&& cd /usr/src/python \
51
- && ./configure --enable-shared --enable-unicode=ucs4 \
51
+ && ./configure \
52
+ --enable-loadable-sqlite-extensions \
53
+ --enable-shared \
52
54
&& make -j$(nproc) \
53
55
&& make install \
54
56
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ ENV PYTHON_VERSION 3.4.5
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
15
RUN set -ex \
16
- && apk add --no-cache --virtual .fetch-deps curl gnupg \
16
+ && apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
17
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19
19
&& export GNUPGHOME="$(mktemp -d)" \
20
20
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
21
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
22
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
23
- && mkdir -p /usr/src \
24
- && tar -xJC /usr/src -f python.tar.xz \
25
- && mv "/usr/src/Python-$PYTHON_VERSION" /usr/src/python \
23
+ && mkdir -p /usr/src/python \
24
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
26
25
&& rm python.tar.xz \
27
26
&& apk del .fetch-deps \
28
27
\
@@ -40,7 +39,9 @@ RUN set -ex \
40
39
xz-dev \
41
40
zlib-dev \
42
41
&& cd /usr/src/python \
43
- && ./configure --enable-shared --enable-unicode=ucs4 \
42
+ && ./configure \
43
+ --enable-loadable-sqlite-extensions \
44
+ --enable-shared \
44
45
&& make -j$(getconf _NPROCESSORS_ONLN) \
45
46
&& make install \
46
47
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ RUN set -ex \
48
48
&& rm python.tar.xz \
49
49
\
50
50
&& cd /usr/src/python \
51
- && ./configure --enable-shared --enable-unicode=ucs4 \
51
+ && ./configure \
52
+ --enable-loadable-sqlite-extensions \
53
+ --enable-shared \
52
54
&& make -j$(nproc) \
53
55
&& make install \
54
56
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ ENV PYTHON_VERSION 3.5.2
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
15
RUN set -ex \
16
- && apk add --no-cache --virtual .fetch-deps curl gnupg \
16
+ && apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
17
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19
19
&& export GNUPGHOME="$(mktemp -d)" \
20
20
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
21
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
22
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
23
- && mkdir -p /usr/src \
24
- && tar -xJC /usr/src -f python.tar.xz \
25
- && mv "/usr/src/Python-$PYTHON_VERSION" /usr/src/python \
23
+ && mkdir -p /usr/src/python \
24
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
26
25
&& rm python.tar.xz \
27
26
&& apk del .fetch-deps \
28
27
\
@@ -40,7 +39,9 @@ RUN set -ex \
40
39
xz-dev \
41
40
zlib-dev \
42
41
&& cd /usr/src/python \
43
- && ./configure --enable-shared --enable-unicode=ucs4 \
42
+ && ./configure \
43
+ --enable-loadable-sqlite-extensions \
44
+ --enable-shared \
44
45
&& make -j$(getconf _NPROCESSORS_ONLN) \
45
46
&& make install \
46
47
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ RUN set -ex \
48
48
&& rm python.tar.xz \
49
49
\
50
50
&& cd /usr/src/python \
51
- && ./configure --enable-shared --enable-unicode=ucs4 \
51
+ && ./configure \
52
+ --enable-loadable-sqlite-extensions \
53
+ --enable-shared \
52
54
&& make -j$(nproc) \
53
55
&& make install \
54
56
&& ldconfig \
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ RUN set -ex \
27
27
&& rm python.tar.xz \
28
28
\
29
29
&& cd /usr/src/python \
30
- && ./configure --enable-shared --enable-unicode=ucs4 \
30
+ && ./configure \
31
+ --enable-loadable-sqlite-extensions \
32
+ --enable-shared \
31
33
&& make -j$(nproc) \
32
34
&& make install \
33
35
&& ldconfig \
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ ENV PYTHON_VERSION 3.6.0a2
13
13
ENV PYTHON_PIP_VERSION 8.1.2
14
14
15
15
RUN set -ex \
16
- && apk add --no-cache --virtual .fetch-deps curl gnupg \
16
+ && apk add --no-cache --virtual .fetch-deps curl gnupg tar xz \
17
17
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
18
18
&& curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
19
19
&& export GNUPGHOME="$(mktemp -d)" \
20
20
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
21
21
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
22
22
&& rm -r "$GNUPGHOME" python.tar.xz.asc \
23
- && mkdir -p /usr/src \
24
- && tar -xJC /usr/src -f python.tar.xz \
25
- && mv "/usr/src/Python-$PYTHON_VERSION" /usr/src/python \
23
+ && mkdir -p /usr/src/python \
24
+ && tar -xJC /usr/src/python --strip-components=1 -f python.tar.xz \
26
25
&& rm python.tar.xz \
27
26
&& apk del .fetch-deps \
28
27
\
@@ -40,7 +39,9 @@ RUN set -ex \
40
39
xz-dev \
41
40
zlib-dev \
42
41
&& cd /usr/src/python \
43
- && ./configure --enable-shared --enable-unicode=ucs4 \
42
+ && ./configure \
43
+ --enable-loadable-sqlite-extensions \
44
+ --enable-shared \
44
45
&& make -j$(getconf _NPROCESSORS_ONLN) \
45
46
&& make install \
46
47
&& pip3 install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ RUN set -ex \
48
48
&& rm python.tar.xz \
49
49
\
50
50
&& cd /usr/src/python \
51
- && ./configure --enable-shared --enable-unicode=ucs4 \
51
+ && ./configure \
52
+ --enable-loadable-sqlite-extensions \
53
+ --enable-shared \
52
54
&& make -j$(nproc) \
53
55
&& make install \
54
56
&& ldconfig \
You can’t perform that action at this time.
0 commit comments