Skip to content

fix(docker): pin alpine base + apk versions (PILOT-154)#9

Merged
TeoSlayer merged 1 commit into
mainfrom
fix/pilot-154-dockerfile-pin-060140
May 29, 2026
Merged

fix(docker): pin alpine base + apk versions (PILOT-154)#9
TeoSlayer merged 1 commit into
mainfrom
fix/pilot-154-dockerfile-pin-060140

Conversation

@TeoSlayer
Copy link
Copy Markdown
Contributor

Make the runtime image reproducible by pinning the Alpine base patch level and apk package versions.

Changes:

  • FROM alpine:3.20FROM alpine:3.20.6
  • apk add --no-cache ca-certificates tzdata → explicit =version pins for both

Blast 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

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
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer TeoSlayer merged commit e0ba8d7 into main May 29, 2026
3 checks passed
@matthew-pilot matthew-pilot deleted the fix/pilot-154-dockerfile-pin-060140 branch May 29, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants