build: bump Python base off stale 3.13.1 patch -> 3.13 line#203
Open
d0choa wants to merge 2 commits into
Open
Conversation
Pinning the exact python:3.13.1-alpine3.21 patch froze the runtime on a December 2024 CPython build, missing subsequent 3.13 security and bug-fix patch releases. Relax the pin to the 3.13 minor line so rebuilds pick up the latest 3.13 patch automatically. Python 3.13 remains a supported minor line, and app dependencies stay pinned via uv.lock, so reproducibility of the application deps is unaffected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Relax the Docker base image pin from the exact patch
python:3.13.1-alpine3.21to thepython:3.13-alpine3.21minor line.This addresses a security-audit lifecycle finding (CWE-1104, Use of Unmaintained Third Party Components — Low). Python 3.13 itself is still supported (bugfixes through ~2029), but
3.13.1is a December 2024 patch release. Pinning that exact patch froze the runtime on a 2024 build and left it missing ~13 subsequent CPython patch releases of security and bug fixes. Tracking the3.13minor line means rebuilds automatically pick up the latest 3.13 patch, so this drift never recurs while staying on the same supported minor.Scope / verification
Dockerfile(base image tag only); nothing else touched.uv.lock(uv sync --frozen), so build reproducibility of the app deps is unaffected.python:3.13-alpine3.21is a standard Docker official image variant. Confirmed resolvable viadocker manifest inspect python:3.13-alpine3.21(returns a valid multi-arch OCI image index).