Multi-stage builds are useful to anyone who has struggled to optimize Dockerfiles while keeping them easy to read and maintain. Use multi-stage buildsWith 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 behi
![Multi-stage builds](https://cdn-ak-scissors.b.st-hatena.com/image/square/a5c1349a68f6179984f5dfed03618fcbf551539f/height=288;version=1;width=512/https%3A%2F%2Fdocs.docker.com%2Fassets%2Fimages%2Fthumbnail.webp)