Multi-Stage Build
Noun · Development
Definitions
A Dockerfile technique that uses multiple `FROM` statements to create intermediate build stages — compiling code and installing dev dependencies in early stages and copying only the final artifacts into a slim runtime image — dramatically reducing the production image size and attack surface.
In plain English: A Docker trick where you use one big environment to build your code and then copy just the finished product into a tiny, clean container for production.
Example: "The multi-stage build compiles the Go binary in a 1.2 GB SDK image but the final stage is a 12 MB scratch container with just the binary."