What problem does it solve?
This Skill turns Docker packaging from a fragile, security-prone afterthought into a production-ready workflow for building, shipping, and operating containers with confidence.
Core Features & Use Cases
- Dockerfile best practices: Multi-stage builds, layer ordering, image pinning, .dockerignore hygiene, and language-specific runtime patterns.
- Build acceleration and supply-chain safety: BuildKit cache mounts, secret mounts, SSH forwarding, and multi-platform builds without leaking credentials.
- Production operations: Non-root execution, distroless and read-only hardening, health checks, graceful shutdown, logging, resource limits, and restart policies.
- Compose and CI/CD: Production Compose overrides, secrets, profiles, image tagging strategies, registry management, and GitHub Actions workflows.
- Use case: A team preparing a Node.js API for launch can use this Skill to shrink the image, reduce CVE exposure, add health checks, and publish immutable release tags.
Quick Start
Ask the docker-production-patterns skill to review my Dockerfile, Compose files, and image publishing workflow and rewrite them for smaller images, stronger security, faster builds, and safer production operations.