Skip to content

fix(build): pin the base images by digest (lake#1003) - #38

Merged
homer6 merged 1 commit into
devfrom
fix/1003-pin-base-images
Nov 16, 2026
Merged

homer6 merged 1 commit into
devfrom
fix/1003-pin-base-images

Conversation

@homer6

@homer6 homer6 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What: The Dockerfile names its base images by digest as well as by tag.
Why: A tag on Docker Hub or GHCR can be moved, so a later build of the same source could get a different base. Finding LSR-197, oramasearch/lake#1003, part of gate G1 of https://github.com/oramasearch/orama-bridge/issues/273.
How: Each FROM and COPY --from image gets the multi-platform index digest its tag points to today, read from the registry API.

Pins

Image Tag Digest
python (build and runtime stages) 3.12-slim sha256:5e2bdb1b0d542d5039cffb8181c65930093949194a65c365dfb1b0fe13a4fa5b
ghcr.io/astral-sh/uv 0.11.7 sha256:240fb85ab0f263ef12f492d8476aa3a2e4e1e333f7d67fbdd923d00a506a516a

Both are OCI image index digests, read with an anonymous token and a HEAD on the manifest. Nothing was pulled or pushed. The Dockerfile has no downloaded installer and no apt-get install; Python packages are already locked by uv.lock (uv sync --frozen). The README notes that the bases are pinned by digest.

Proof

Not built or tested: per Steve, 2026-11-14, builds and tests run at review and release time.

Both python:3.12-slim stages and the uv image are named by tag and
multi-platform index digest, so a moved upstream tag cannot change what a
rebuild of the same source contains. The README says so.

Refs oramasearch/lake#1003
@homer6

homer6 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Merged into dev as a merge commit (074b3221) on Steve's review (2026-11-15). Low risk, on Steve's 2026-11-15 instruction to merge the low-risk PRs. Not built or tested in review (tests run at the release cut).

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.

1 participant