What problem does it solve?
Dockerfile development often results in insecure defaults, bloated images, and brittle builds. This Skill provides guidance to enforce security, efficiency, and maintainability in Dockerfile authoring and image creation.
Core Features & Use Cases
- Security hardening: non-root users, minimal base images, and image scanning integration.
- Build optimization: multi-stage builds, reduced layers, and cached layer ordering.
- Observability and metadata: OCI-compliant labels and documentation within images.
- CI/CD readiness: reproducible builds and best practices for automated pipelines.
Quick Start
Apply these practices to your Dockerfiles: enable a non-root user, switch to a minimal base image, implement a multi-stage build, add OCI labels, and include a health check for your container. Then integrate image scanning in your CI pipeline.