# Multi-stage Builds

> What are multi-stage Docker builds, how do they work, and why should you use them for production images?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-multi-stage-builds
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What are multi-stage Docker builds, how do they work, and why should you use them for production images?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Multi-stage Build, COPY --from, Build Target, Distroless, Image Size

Previous: [CMD vs. ENTRYPOINT](https://www.internhack.in/learn/interview/docker-containers/docker-cmd-vs-entrypoint) · Next: [Volumes vs. Bind Mounts](https://www.internhack.in/learn/interview/docker-containers/docker-volumes-vs-bind-mounts) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [COPY vs. ADD](https://www.internhack.in/learn/interview/docker-containers/docker-copy-vs-add)
- [Docker Compose](https://www.internhack.in/learn/interview/docker-containers/docker-compose-purpose)
- [Networking Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-networking-drivers)
- [Graceful Shutdown (Stop vs Kill)](https://www.internhack.in/learn/interview/docker-containers/docker-container-killing-graceful)
- [Dockerizing Node.js Apps](https://www.internhack.in/learn/interview/docker-containers/dockerize-node-app-best-practices)
- [Container Security](https://www.internhack.in/learn/interview/docker-containers/docker-security-best-practices)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
