Skip to content

Commit 478260e

Browse files
committed
feat(python): switch default Python to match trixie
1 parent f9665ca commit 478260e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

python/3/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Python image for AMP containers including Python 3.10, 3.11 (default), 3.12 and 3.13 from upstream
1+
# Python image for AMP containers including Python 3.10, 3.11, 3.12 and 3.13 (default) from upstream
22
# cubecoders/ampbase:python-3
33

44
FROM python:3.10-slim-trixie AS py310
@@ -56,29 +56,29 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK="1"
5656
ENV AMP_ADDITIONAL_ENV_VARS="PIP_DISABLE_PIP_VERSION_CHECK"
5757
ENV DEBIAN_FRONTEND="noninteractive"
5858

59-
ARG PYTHON_DEFAULT="3.11"
60-
ARG PYTHON_NON_DEFAULT="3.10 3.12 3.13"
59+
ARG PYTHON_DEFAULT="3.13"
60+
ARG PYTHON_NON_DEFAULT="3.10 3.11 3.12"
6161

6262
# Drop in upstream Python 3.10
6363
COPY --from=py310 /usr/local/ /usr/local/
6464

6565
COPY --from=py310 /tmp/3.10-run-deps.txt /tmp/3.10-run-deps.txt
6666

67+
# Drop in upstream Python 3.11
68+
COPY --from=py311 /usr/local/ /usr/local/
69+
70+
COPY --from=py311 /tmp/3.11-run-deps.txt /tmp/3.11-run-deps.txt
71+
6772
# Drop in upstream Python 3.12
6873
COPY --from=py312 /usr/local/ /usr/local/
6974

7075
COPY --from=py312 /tmp/3.12-run-deps.txt /tmp/3.12-run-deps.txt
7176

72-
# Drop in upstream Python 3.13
77+
# Drop in upstream Python 3.13 (default last)
7378
COPY --from=py313 /usr/local/ /usr/local/
7479

7580
COPY --from=py313 /tmp/3.13-run-deps.txt /tmp/3.13-run-deps.txt
7681

77-
# Drop in upstream Python 3.11 (default last)
78-
COPY --from=py311 /usr/local/ /usr/local/
79-
80-
COPY --from=py311 /tmp/3.11-run-deps.txt /tmp/3.11-run-deps.txt
81-
8282
RUN set -eux; \
8383
apt-get update; \
8484
# Purge system Python binaries and libs

0 commit comments

Comments
 (0)