~/talk

Faster builds and slimmer images with Docker multistage builds

Talkat Jfokus 2023 · 2023-02-06..02-08· [devops-and-delivery, developer-experience]
links:none on file
slides:none on file

Shows a concrete Dockerfile that replaces copying an external build with a single multi-stage pipeline that runs yarn install and produces gzip-compressed static files served by nginx, with measured runs hitting ~107 seconds the first time. Demonstrates using yarn cache mount and npm cache mount to cut repeated downloads, inspects layers with docker history (images grew from ~227MB to ~315MB without cache), uses cache-from/inline cache to make a Docker registry act as a distributed build cache, and parallelizes independent stages.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Inspecting Docker images
  3. 11:33Single-stage to multi-stage
  4. 16:22Private npm repositories
  5. 24:00Optimizing build cache
  6. 29:46Avoiding cache busting
  7. 33:50Distributed build caches
  8. 41:11Caching from multiple tags
  9. 43:42Parallelizing build steps
  10. 47:46Q&A
~/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.