~/talk

Optimizing Cache Usage in Docker Builds

Talkat Conf42 Cloud Native 2025 · on Thursday, 2025-03-06· [devops-and-delivery, web-performance]
linkedin:ijeoma-eti
slides:none on file

Shows that reordering Dockerfile steps yields concrete savings by copying dependencies first so later code changes reuse the dependency layer instead of reinstalling them, explains using mount=type=cache with BuildKit to persist installs across builds, describes sharing cache via buildx distributed cache or pushing cache to a registry, and gives measurable checks: use docker build --progress=plain plus docker history and timed builds to see layer reuse and actual build-time reduction.

AI-written summary · about

  1. 0:00Introduction to Cache Optimization in Docker Build
  2. 2:04Understanding Docker Build Process
  3. 4:50Optimizing Docker Build with Caching
  4. 11:00Advanced Caching Techniques
  5. 12:34Measuring and Debugging Build Performance
  6. 13:47Conclusion and Next Steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.