Skip to content

Conversation

@vertti
Copy link
Owner

@vertti vertti commented Dec 8, 2025

Summary

  • Add "Keeping Containers Clean" section to docs/usage.md with patterns for running preflight checks without adding bloat to final images
  • Add brief note in README.md pointing to the new section

Covers three patterns:

  • External validation: Run checks via docker run myapp preflight run
  • Entrypoint script: Runtime checks before app starts
  • Multi-stage build: Validate during build, ship clean final image

Document alternative patterns for running preflight checks without
adding bloat to final container images: external validation via
docker run, runtime checks with entrypoint scripts, and multi-stage
builds that validate during build but ship clean.
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.80%. Comparing base (911bfc0) to head (040cfdc).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #56   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files          31       31           
  Lines        1322     1322           
=======================================
  Hits         1174     1174           
  Misses        108      108           
  Partials       40       40           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add examples/multistage-dockerfile/ with 3-stage Dockerfile
- Add examples/runtime-checks-with-entrypoint/ with entrypoint script
- Link docs to example files
- Add integration tests to verify examples stay in sync
@vertti vertti merged commit 26b1d15 into main Dec 8, 2025
16 checks passed
@vertti vertti deleted the docs-container-patterns branch December 8, 2025 10:02
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