Build optimized, secure multi-stage Dockerfiles for any language or framework.
Structures builds with separate builder and runtime stages, copying only necessary artifacts to minimize final image size and attack surface Emphasizes layer caching optimization by ordering commands from least to most frequently changing, combined with .dockerignore and command consolidation Recommends minimal base images (Alpine, distroless, or official slim variants) with exact version pinning for reproducibility Covers security hardening: non-root users, build tool removal, vulnerability scanning, and secrets isolation through multi-stage separation Includes performance patterns like build arguments, environment variable optimization, and healthcheck configuration for production readiness
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.