β 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
- How do Docker, ECS, and EKS relate to each other in AWS?
- What does it mean that Security Groups are stateful in AWS?
- What is the difference between SSL and TLS?
- Sessions vs JWT: when would you prefer one over the other, and why?
- What problem do RTO and RPO solve in disaster recovery planning, and what does each one measure?
β PreviousNo login needed