Use multi-stage builds | Docker Documentation
2021-8-20 · Use multi-stage builds 🔗. With multi-stage builds, you use multiple FROM statements in your Dockerfile. Each FROM instruction can use a different base, and each of them begins a new stage of the build. You can selectively copy artifacts from one stage to another, leaving behind everything you don''t want in the final image.