Create Multistage Dockerfile

Create multi-stage Dockerfiles that separate build and runtime environments for minimal production images. Covers builder/runtime stage separation, artifact copying, scratch/distroless/alpine targets, and size comparison. Use when production images are too large, when build tools are included in the final image, when you need separate dev and prod images from one Dockerfile, or when deploying to constrained environments like edge or serverless.

pjt222 Updated 44 repo stars

File contents

pjt222/agent-almanac commit b652e9ddde

Frequently asked questions

npx get-skill add pjt222/create-multistage-dockerfile-8