Skip to content

Opening book details…

About this document

Multi-Stage Builds in Docker by saphana9800 is a document available to read on EtoBox.

Multi-stage builds allow building and publishing artifacts in one Dockerfile and copying them between stages. This avoids needing scripts to publish outputs. A .NET Core app can be built in one stage using the SDK image then copied to a runtime image. Stages can be named and only a target stage built. This enables debugging individual stages or using different stages for testing vs production. Examples show multi-stage Dockerfiles for Java compiling in one stage then copying class files to a runtime stage,

Author
saphana9800
Language
EN