Docker and CI/CD · Senior · Question 18 of 75

In a monorepo, why might changing one package rebuild every app's Docker image?

Explanation

Any change invalidates COPY . .. Pruning to the app's dependency subset (for example turbo prune) gives each image a minimal context and lockfile.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 18

Test yourself

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

Take this quiz