Layer Caching

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Every time you change one line of code, your Docker build reinstalls all dependencies and takes five minutes. Explain how image layers and the build cache work, and how you'd reorder the Dockerfile to fix this.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →