docker-patterns
Installation
SKILL.md
Docker Patterns
Produces secure, minimal, and efficiently-cached Docker images using multi-stage builds, non-root users, and proper layer ordering.
Purpose
Produce secure, minimal, and efficiently-cached Docker images using multi-stage builds, non-root users, and proper layer ordering to reduce image size, attack surface, and CI build times.
Trigger
Apply when the user requests:
- "Dockerfile", "Docker", "containerize", "docker-compose", "container best practices"
- "multi-stage build", "Docker optimization", "write a Dockerfile"
- "容器化", "寫 Dockerfile", "Docker 優化", "docker 設定"
Do NOT trigger for:
- Kubernetes configuration (different domain and tooling)
- CI/CD pipeline setup — use a dedicated ci-cd-pipeline skill