Intermediate
Docker & Containers
Q67 / 100
Why might you use "COPY --from=<stage>" in a multi-stage Dockerfile?
Correct! Well done.
Incorrect.
The correct answer is B) To copy specific files or build artifacts produced in an earlier build stage into the current stage, without bringing along that stage's build tools or intermediate files
B
Correct Answer
To copy specific files or build artifacts produced in an earlier build stage into the current stage, without bringing along that stage's build tools or intermediate files
Explanation
"COPY --from=builder /app/dist ./dist" lets a final, minimal stage include only compiled output from an earlier (often larger) build stage, keeping the final image small.
Progress
67/100