Skip to content

Commit 32c3bab

Browse files
committed
feat(python): add 3.13 to python-3 image
1 parent 74fdb60 commit 32c3bab

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

python/3/Dockerfile

Lines changed: 19 additions & 2 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) and 3.12 from upstream
1+
# Python image for AMP containers including Python 3.10, 3.11 (default), 3.12 and 3.13 from upstream
22
# ghcr.io/cubecoders/amp:python-3
33

44
FROM python:3.10-slim-bookworm AS py310
@@ -37,14 +37,26 @@ RUN chmod +x /usr/local/bin/find-deps.sh
3737
RUN set -eux; \
3838
/usr/local/bin/find-deps.sh ${PYTHON_VERSION} >/tmp/${PYTHON_VERSION}-run-deps.txt
3939

40+
FROM python:3.13-slim-bookworm AS py313
41+
42+
ENV DEBIAN_FRONTEND="noninteractive"
43+
44+
ARG PYTHON_VERSION="3.13"
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 ${PYTHON_VERSION} >/tmp/${PYTHON_VERSION}-run-deps.txt
51+
4052
FROM ghcr.io/cubecoders/amp:debian
4153
LABEL org.opencontainers.image.licenses=MIT
4254

4355
ENV PIP_DISABLE_PIP_VERSION_CHECK="1"
4456
ENV DEBIAN_FRONTEND="noninteractive"
4557

4658
ARG PYTHON_DEFAULT="3.11"
47-
ARG PYTHON_NON_DEFAULT="3.10 3.12"
59+
ARG PYTHON_NON_DEFAULT="3.10 3.12 3.13"
4860

4961
# Drop in upstream Python 3.10
5062
COPY --from=py310 /usr/local/ /usr/local/
@@ -56,6 +68,11 @@ COPY --from=py312 /usr/local/ /usr/local/
5668

5769
COPY --from=py312 /tmp/3.12-run-deps.txt /tmp/3.12-run-deps.txt
5870

71+
# Drop in upstream Python 3.13
72+
COPY --from=py313 /usr/local/ /usr/local/
73+
74+
COPY --from=py313 /tmp/3.13-run-deps.txt /tmp/3.13-run-deps.txt
75+
5976
# Drop in upstream Python 3.11 (default last)
6077
COPY --from=py311 /usr/local/ /usr/local/
6178

0 commit comments

Comments
 (0)