containerization
Builds secure, minimal, and reproducible container images with proper health checks and runtime settings.
SKILL.md.claude/skills/containerization/SKILL.md
GitHubContainerization Skill
Objectives
- Minimal, secure images (non-root, least privilege)
- Reproducible multi-stage builds with caching
- Health checks and graceful shutdown
Checklist
- Use multi-stage builds; cache dependency layers
- Run as non-root; drop capabilities; read-only filesystem if possible
- Do not bake secrets into images; use env/secret mounts
- Add
HEALTHCHECKand properCMD/ENTRYPOINT - Pin base images by digest or version; verify checksums for downloads
- Scan images in CI; fail on critical CVEs; maintain SBOM
Common Tasks
- Convert a Dockerfile to multi-stage with build cache
- Replace root user with unprivileged user and fix permissions
- Add healthcheck compatible with orchestration platform
Output
- Proposed Dockerfile with annotations
- Security notes (capabilities, file perms, secret handling)
- Scan summary and remediation suggestions