What problem does it solve?
This Skill helps you prevent slow builds, oversized images, and avoidable container vulnerabilities by applying consistent Docker and OCI container construction practices.
Core Features & Use Cases
- Multi-stage Docker builds: Separate build-time dependencies from runtime so production images stay lean and safer.
- Layer and version discipline: Order layers by change frequency and pin versions for reproducibility and reliable caching.
- Runtime hardening: Run as non-root, minimize attack surface, use .dockerignore, and add health checks for operational correctness.
- Security and size tradeoffs: Compare base image choices (alpine, distroless, scratch) and use targeted tooling and checks to validate improvements.
Use cases include writing and reviewing Dockerfiles, troubleshooting slow/unsafe container builds, and hardening images before deploying to production environments.
Quick Start
Ask the agent to review your Dockerfile and propose a multi-stage, pinned-version, non-root build that includes a correct .dockerignore, health check, and security checklist.