Overview
Syllabus
Intro
Pocket Guide
Quick refresher on Images
Quick refresher on Build
Areas of improvements
Example project
Order matters for caching
More specific COPY to limit cache bust
Line buddies: apt-get update & install
Remove unnecessary dependencies
Use --no-install-recommends
Remove package manager cache
Reuse official images when possible
Use more specific tags
Build from source in a consistent environment
Cache dependencies
Identify build dependencies
Multi-stage builds to remove build deps
Multi-stage usecases
Various environments: build, dev, test, lint,...
Multi-stage: build concurrently
Benchmarks
Supercharged Docker Build with BuildKit
Context mounts (v18.09 only)
Application cache (v18.09 only)
Improvements recap
Taught by
Docker