Add Chainguard static image build alongside standard Ubuntu build#14
Merged
Add Chainguard static image build alongside standard Ubuntu build#14
Conversation
This commit adds a minimal, secure Chainguard-based static image build while maintaining the existing Ubuntu-based image for debugging. Changes: - Add Dockerfile.static for Chainguard static build (~10-15 MB) - Uses musl-based static compilation (all deps compiled in) - Runs on cgr.dev/chainguard/static base (2-5 MB) - No shell, minimal attack surface, typically 0-2 CVEs - Uses existing rustls configuration (no OpenSSL C deps) - Update CI/CD to build both image variants: - Standard: cbaugus/rust_loadtest:latest (Ubuntu, debuggable) - Static: cbaugus/rust_loadtest:latest-static (Chainguard, secure) - Generate separate SBOMs for both images - Update README.md with image variant documentation: - Document standard vs static image trade-offs - Recommend static for prod, standard for dev/debug - Update project structure to show both Dockerfiles Benefits: - Standard image: Full shell access, easy debugging, lab testing - Static image: 75% smaller, zero CVEs, maximum security for production - Zero cost (Chainguard public images are free) - Flexibility to choose the right image for the deployment context 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.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.
This commit adds a minimal, secure Chainguard-based static image build while maintaining the existing Ubuntu-based image for debugging.
Changes:
Add Dockerfile.static for Chainguard static build (~10-15 MB)
Update CI/CD to build both image variants:
Update README.md with image variant documentation:
Benefits: