What problem does it solve?
It helps you produce production-ready Dockerfiles that are multi-stage, secure (non-root), and optimized for smaller images and safer deployments.
Core Features & Use Cases
- Multi-stage production Dockerfile generation: separates build and runtime to reduce size and attack surface.
- Docker security hardening defaults: enforces pinned tags (no :latest), creates a non-root user, and adds HEALTHCHECK for web services.
- Companion .dockerignore generation: reduces build context and helps prevent secrets and unwanted artifacts from leaking into the build.
- Validation and iteration loop: validates via dockerfile-validator with hadolint/checkov fallback and iterates up to three times with an iteration log.
- Optimization-ready deliverables: outputs an audit report with metrics, next steps, and (when needed) an intentional-deviation report.
Real-world example: containerize a Node.js API into a hardened production image with a correctly structured multi-stage build, a matching .dockerignore, and a validated final Dockerfile.
Quick Start
Ask the skill to generate a production Dockerfile and matching .dockerignore for your application using multi-stage builds, non-root execution, pinned base images, and validation output.