Repository navigation
Build the Docker image from scratch - #7
Merged
Merged
Conversation
The final stage held distroless's base files the server never uses. It now holds only the binary, the web app, CA certs, a passwd entry and /data. The user keeps UID 65532 so volumes chowned for the old image still work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Moves the final image stage from
gcr.io/distroless/static-debian12:nonroottoscratch, following ../tmphost's Dockerfile./app/sql-mcp,/app/public,/etc/ssl/certs/ca-certificates.crt(Postgres TLS, tmphost API, ACME),/etc/passwdand/data. No shell, no package manager, no extra base files.nonroot), the same UID as before, so existing volumes need no newchown./tmp) has to be copied in.Tested: built the image (35 MB, was 36.9 MB) and ran it. It starts as
nonroot,/and/databases/xreturn 200, and it createssqlmcp.dbin/data.🤖 Generated with Claude Code