proskillv2.0.0✓ verified
dockerfile-authoring
Author small, secure, fast-building container images — multi-stage builds, layer caching, non-root/distroless hardening, .dockerignore, size optimization, and HEALTHCHECK. Use when writing or reviewing a Dockerfile, shrinking image size, or fixing slow/insecure builds.
$npx vanara install dockerfile-authoring
Included with Vanara Pro ($10/mo) — unlocks all 206 items. See pricing →
Overview
A production image should be small (fast to pull, small attack surface), fast to build (cache-friendly layers), and least-privilege (non-root, no shell/package manager, no build tools). This skill is the deep reference for getting there — the decisions, the trade-offs, and the failure modes. Heavy detail lives in references/; copy-paste Dockerfiles in examples/; a runnable linter in scripts/.
What it covers
- Multi-stage builds
- Layer caching & build speed
- Hardening (run as little as possible)
- Size optimization & .dockerignore
- Runtime contract: HEALTHCHECK, ENV, secrets
- Image Hardening