3 Weird Tricks to Make Docker Builds Go Vroom
summary
Three concrete tricks: enable GitHub Actions Docker build action caching so build layers persist in the Actions cache, cutting a small image from 44 seconds to 22 seconds on consecutive builds; order Dockerfile layers so base image and system deps come first, install only dependency manifests before copying source, and copy source last; use cache mounts to restore pip/go mod caches during build so downloads are reused and bandwidth is saved.
AI-written summary · about
related talks
24mSpeeding up Your Docker Image Build
36mPractical Tips for Build Optimization for GitLab and Docker Users
58mOptions Galore to Get from Source Code to Container
15mOptimizing Cache Usage in Docker Builds
28mWhat's New in Docker Build
27mOptimizing CI/CD Pipelines for Faster Time to Market
50mFaster builds and slimmer images with Docker multistage builds
22mBuilding a Docker Image Pipeline Using GitHub Actions
