fix(docker): pin alpine base + apk versions (PILOT-154)#9
Merged
Conversation
The runtime stage was using `FROM alpine:3.20` and an unpinned `apk add --no-cache ca-certificates tzdata`. Both make the produced image content non-deterministic across rebuilds — Alpine's :3.20 tag moves with patch releases, and apk pulls whatever the cdn currently offers. Pinned to alpine:3.20.6 + the current apk versions on that base: ca-certificates=20260413-r0 tzdata=2026b-r0 Bump-together comment in the Dockerfile so the next person updating knows to bump base + packages in lockstep + verify versions exist on dl-cdn before merging. Verified: `docker build .` clean (smoke test). Closes PILOT-154
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Make the runtime image reproducible by pinning the Alpine base patch level and apk package versions.
Changes:
FROM alpine:3.20→FROM alpine:3.20.6apk add --no-cache ca-certificates tzdata→ explicit=versionpins for bothBlast radius: small. Rebuilds become deterministic. Risk: if the pinned package versions get retired from the Alpine cdn the next rebuild fails — mitigated by the in-file comment instructing the bumper to verify versions exist + update base + packages together.
Verification:
docker build .clean.Closes PILOT-154