examerioLogin
← Cloud & DevOpsQuestion 15 of 50

Why would you use a multi-stage Dockerfile?

πŸ“˜ Explanation

Multi-stage builds let you use one stage to compile or build your app with all the necessary tools, then copy only the final artifacts into a clean, minimal runtime image. This keeps the final image small, secure, and fast to deploy. The other options describe things multi-stage builds don't actually do, like permanent registry caching, running parallel containers, or auto-switching environment configs.

Related questions

← PreviousNo login needed