Docker and CI/CD · Middle · Question 1 of 75

What is the main benefit of a multi-stage build?

Explanation

A builder stage installs dev dependencies and compiles; the final stage copies only the output with COPY --from=builder. Images get smaller and safer.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 1

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz