What problem does it solve?
This Skill provides concrete, actionable guidance to author reproducible, minimal, and secure container images and docker-compose stacks, reducing build churn, security risk, and runtime surprises.
Core Features & Use Cases
- Multi-stage build patterns: Prescribe deps, build, dev, and production stages to keep build tools out of final images.
- Layer and cache optimization: Order layers, copy lockfiles first, and use cache mounts for faster and deterministic builds.
- Compose and runtime patterns: Recommend anonymous volumes for node_modules, healthchecks, depends_on readiness, and binding dev ports to localhost.
- Security hardening: Pin base images, run as non-root, avoid baking secrets, add no-new-privileges, drop capabilities, and use read-only filesystems with tmpfs for writable paths.
- Networking, volumes, and observability: Guidance for service discovery, named volumes, resource limits, OCI labels, and signal handling with tini.
- Debugging & maintenance: Common commands and workflows for logs, shelling into containers, network checks, and safe cleanup.
Quick Start
Ask the docker skill to convert a single-stage Dockerfile and compose file into a multi-stage, production-ready setup that pins base images, adds healthchecks, creates a non-root user, uses cache mounts, and moves secrets to env_file.