Skip to content

Commit a622f1e

Browse files
committed
fix(docker): allow PYTHON_VERSION deviating from debian dist version
1 parent c9adbc6 commit a622f1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/18389.docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Docker image can now be built with `PYTHON_VERSION` other than 3.11.

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ RUN \
118118
###
119119
### Stage 2: runtime dependencies download for ARM64 and AMD64
120120
###
121-
FROM --platform=$BUILDPLATFORM docker.io/library/debian:${DEBIAN_VERSION} AS runtime-deps
121+
FROM --platform=$BUILDPLATFORM docker.io/library/python:${PYTHON_VERSION}-slim-${DEBIAN_VERSION} AS runtime-deps
122122

123123
# Tell apt to keep downloaded package files, as we're using cache mounts.
124124
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache

0 commit comments

Comments
 (0)