Skip to content

Commit 3277326

Browse files
committed
fix(docker): unpin python3 minor; Ubuntu 26.04 ships 3.13 by default
The Dockerfile pinned `python3.12` but the default UBUNTU_TAG=26.04 ships python3.13 as the default `python3`, and `python3.12` is no longer in resolute's repos. apt-get fails: E: Unable to locate package python3.12 The bundled installer.py is python_requires >= 3.10 and works on any modern python3, so switched to the meta-package `python3`. The image now tracks whatever default Python the chosen Ubuntu release ships — no per-image-bump churn needed when Ubuntu rotates its default Python. Same fix is forward-compatible: UBUNTU_TAG=24.04 (LTS) gives 3.12, 26.04 gives 3.13, future releases will Just Work.
1 parent 2c694da commit 3277326

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,18 @@ ENV DEBIAN_FRONTEND=noninteractive \
4141
LC_ALL=C.UTF-8
4242

4343
# Minimal package set: nginx (the web server) + supervisor (the process
44-
# manager) + python3.12 (for local bundle rebuilds + healthchecks) +
45-
# gosu (drops privileges in the entrypoint without forking).
44+
# manager) + python3 (for local bundle rebuilds + healthchecks; tracks
45+
# whatever the default Python is on the target Ubuntu release — the
46+
# bundled installer.py is python_requires >= 3.10 and works on any
47+
# python3 ≥ 3.10) + gosu (drops privileges in the entrypoint without
48+
# forking).
4649
RUN apt-get update \
4750
&& apt-get install -y --no-install-recommends \
4851
ca-certificates \
4952
curl \
5053
gosu \
5154
nginx \
52-
python3.12 \
55+
python3 \
5356
python3-pip \
5457
supervisor \
5558
tini \

0 commit comments

Comments
 (0)