Docker and CI/CD · Middle · Question 12 of 75
What does BuildKit do with independent stages of a multi-stage build?
- 1Builds them strictly one after another in file order
- 2Merges them into one stage to reduce the number of layers
- ✓Correct answer: Builds them in parallel and skips stages the target doesn't need
Explanation
BuildKit builds a dependency graph of stages. A test stage that the final target doesn't depend on isn't built unless you target it.