Skip to content

Commit 10096f6

Browse files
committed
Define PIP_VERSION arg once it's needed
By defining it early we're busting the cache on pip version upgrade, effectively making the split into two layers pointless.
1 parent 2d1b765 commit 10096f6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

python/3.12/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM $BUILD_FROM
33

44
ARG \
55
PYTHON_VERSION \
6-
PIP_VERSION \
76
CERT_IDENTITY \
87
CERT_OIDC_ISSUER \
98
QEMU_CPU
@@ -110,6 +109,8 @@ RUN \
110109
&& ln -s python3 python \
111110
&& ln -s python3-config python-config
112111

112+
ARG PIP_VERSION
113+
113114
RUN set -ex; \
114115
\
115116
apk add --no-cache --virtual .fetch-deps openssl; \

python/3.13/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM $BUILD_FROM
33

44
ARG \
55
PYTHON_VERSION \
6-
PIP_VERSION \
76
CERT_IDENTITY \
87
CERT_OIDC_ISSUER \
98
QEMU_CPU
@@ -110,6 +109,8 @@ RUN \
110109
&& ln -s python3 python \
111110
&& ln -s python3-config python-config
112111

112+
ARG PIP_VERSION
113+
113114
RUN set -ex; \
114115
\
115116
apk add --no-cache --virtual .fetch-deps openssl; \

python/3.14/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM $BUILD_FROM
33

44
ARG \
55
PYTHON_VERSION \
6-
PIP_VERSION \
76
CERT_IDENTITY \
87
CERT_OIDC_ISSUER \
98
QEMU_CPU
@@ -111,6 +110,8 @@ RUN \
111110
&& ln -s python3 python \
112111
&& ln -s python3-config python-config
113112

113+
ARG PIP_VERSION
114+
114115
RUN set -ex; \
115116
\
116117
apk add --no-cache --virtual .fetch-deps openssl; \

0 commit comments

Comments
 (0)