Update Docker Python base images to 3.11.14 bookworm

Switch Docker base images to Python v3.11.14 slim-bookworm because the
official Python images no longer ship slim-bullseye. Keeps Python
3.11.12-3.11.14 security fixes (libexpat, tarfile filters, zip64,
setuptools CVEs) on a supported Debian base.

Refs:
- https://www.python.org/downloads/release/python-31114/
- https://www.python.org/downloads/release/python-31113/
- https://www.python.org/downloads/release/python-31112/
This commit is contained in:
Peter Dave Hello 2025-12-09 04:43:24 +08:00
parent 52549d1212
commit 86f7cd00a1
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.11.11-slim-bullseye AS builder
FROM python:3.11.14-slim-bookworm AS builder
WORKDIR /app
@ -21,7 +21,7 @@ RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_lo
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge
FROM python:3.11.11-slim-bullseye
FROM python:3.11.14-slim-bookworm
ARG with_models=false
ARG models=""

View File

@ -1,4 +1,4 @@
FROM arm64v8/python:3.11.11-slim-bullseye as builder
FROM arm64v8/python:3.11.14-slim-bookworm as builder
WORKDIR /app
@ -21,7 +21,7 @@ RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_lo
&& ./venv/bin/pip install . \
&& ./venv/bin/pip cache purge
FROM arm64v8/python:3.11.11-slim-bullseye
FROM arm64v8/python:3.11.14-slim-bookworm
ARG with_models=false
ARG models=""

View File

@ -1,4 +1,4 @@
FROM python:3.11.11-slim-bullseye AS builder
FROM python:3.11.14-slim-bookworm AS builder
WORKDIR /app
@ -26,7 +26,7 @@ RUN <<EOF
./venv/bin/pip cache purge
EOF
FROM python:3.11.11-slim-bullseye
FROM python:3.11.14-slim-bookworm
ARG with_models=false
ARG models=""

View File

@ -1,4 +1,4 @@
FROM python:3.11.11-slim-bullseye AS builder
FROM python:3.11.14-slim-bookworm AS builder
WORKDIR /app
@ -26,7 +26,7 @@ RUN <<EOF
./venv/bin/pip cache purge
EOF
FROM python:3.11.11-slim-bullseye
FROM python:3.11.14-slim-bookworm
ARG with_models=false
ARG models=""