1- # Python image for AMP containers including Python 3.10, 3.11, 3.12 and 3.13 (default) from upstream
1+ # Python image for AMP containers including Python 3.10, 3.11, 3.12, 3.13 (default) and 3.14 from upstream
22# cubecoders/ampbase:python-3
33
44FROM python:3.10-slim-trixie AS py310
@@ -37,6 +37,18 @@ RUN chmod +x /usr/local/bin/find-deps.sh
3737RUN set -eux; \
3838 /usr/local/bin/find-deps.sh >/tmp/${PYTHON_VERSION}-run-deps.txt
3939
40+ FROM python:3.14-slim-trixie AS py314
41+
42+ ENV DEBIAN_FRONTEND="noninteractive"
43+
44+ ARG PYTHON_VERSION="3.14"
45+
46+ COPY scripts/python/find-deps.sh /usr/local/bin/find-deps.sh
47+ RUN chmod +x /usr/local/bin/find-deps.sh
48+
49+ RUN set -eux; \
50+ /usr/local/bin/find-deps.sh >/tmp/${PYTHON_VERSION}-run-deps.txt
51+
4052FROM python:3.13-slim-trixie AS py313
4153
4254ENV DEBIAN_FRONTEND="noninteractive"
@@ -57,7 +69,7 @@ ENV AMP_ADDITIONAL_ENV_VARS="PIP_DISABLE_PIP_VERSION_CHECK"
5769ENV DEBIAN_FRONTEND="noninteractive"
5870
5971ARG PYTHON_DEFAULT="3.13"
60- ARG PYTHON_NON_DEFAULT="3.10 3.11 3.12"
72+ ARG PYTHON_NON_DEFAULT="3.10 3.11 3.12 3.14 "
6173
6274# Drop in upstream Python 3.10
6375COPY --from=py310 /usr/local/ /usr/local/
@@ -74,6 +86,11 @@ COPY --from=py312 /usr/local/ /usr/local/
7486
7587COPY --from=py312 /tmp/3.12-run-deps.txt /tmp/3.12-run-deps.txt
7688
89+ # Drop in upstream Python 3.14
90+ COPY --from=py314 /usr/local/ /usr/local/
91+
92+ COPY --from=py314 /tmp/3.14-run-deps.txt /tmp/3.14-run-deps.txt
93+
7794# Drop in upstream Python 3.13 (default last)
7895COPY --from=py313 /usr/local/ /usr/local/
7996
0 commit comments