multi-stage-dockerfile

Installation
SKILL.md

Multi-Stage Dockerfile

Use this for production-oriented Dockerfiles where build dependencies, runtime dependencies, security, and cache behavior should be explicit.

Project Fit Check

Before writing a Dockerfile:

  1. Detect runtime, package manager, lockfile, build output, server command, and required native dependencies.
  2. Read existing Dockerfiles, compose files, CI image build jobs, and deployment docs.
  3. Preserve the project's base-image policy, registry, and runtime user model.
  4. Do not introduce Alpine, distroless, rootless, or monorepo pruning patterns without checking framework/native dependency compatibility.
  5. If the image is deployed by CI, align build args, secrets, labels, and tags with that pipeline.
Installs
5
GitHub Stars
4
First Seen
Aug 12, 2026