# Shared Python base image — the single source of truth for the Debian base, the # uv version, and the uv-managed CPython version used by every uv-based Python # service (backend, mta-in, mta-out, and the mta-in pymta variant). # # Built + published by `make build-python-base` (locally, tagged # `messages-python-uv:local`) and by the `python-uv` job in messages-ghcr.yml # (multi-arch, pushed to ghcr). Services consume it via the build arg # PYTHON_UV_IMAGE and do `FROM ${PYTHON_UV_IMAGE} AS uv` — see compose.yaml # `build.args` and the CI `build-args` input. # # Deliberately MINIMAL: no build-essential here, because the MTA runtimes inherit # this image directly and we don't want compilers in production images. Each # service adds its own build deps in a build-only stage. FROM debian:trixie-slim@sha256:28de0877c2189802884ccd20f15ee41c203573bd87bb6b883f5f46362d24c5c2 AS base # Bump to force an apt refresh + security upgrade of the base OS. ENV MIN_UPDATE_DATE="2026-07-08" RUN <