|
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 |
2 | 2 | # cubecoders/ampbase:python-3 |
3 | 3 |
|
4 | 4 | FROM python:3.10-slim-trixie AS py310 |
@@ -56,29 +56,29 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK="1" |
56 | 56 | ENV AMP_ADDITIONAL_ENV_VARS="PIP_DISABLE_PIP_VERSION_CHECK" |
57 | 57 | ENV DEBIAN_FRONTEND="noninteractive" |
58 | 58 |
|
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" |
61 | 61 |
|
62 | 62 | # Drop in upstream Python 3.10 |
63 | 63 | COPY --from=py310 /usr/local/ /usr/local/ |
64 | 64 |
|
65 | 65 | COPY --from=py310 /tmp/3.10-run-deps.txt /tmp/3.10-run-deps.txt |
66 | 66 |
|
| 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 | + |
67 | 72 | # Drop in upstream Python 3.12 |
68 | 73 | COPY --from=py312 /usr/local/ /usr/local/ |
69 | 74 |
|
70 | 75 | COPY --from=py312 /tmp/3.12-run-deps.txt /tmp/3.12-run-deps.txt |
71 | 76 |
|
72 | | -# Drop in upstream Python 3.13 |
| 77 | +# Drop in upstream Python 3.13 (default last) |
73 | 78 | COPY --from=py313 /usr/local/ /usr/local/ |
74 | 79 |
|
75 | 80 | COPY --from=py313 /tmp/3.13-run-deps.txt /tmp/3.13-run-deps.txt |
76 | 81 |
|
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 | | - |
82 | 82 | RUN set -eux; \ |
83 | 83 | apt-get update; \ |
84 | 84 | # Purge system Python binaries and libs |
|
0 commit comments