Docker 25 🐳 BuildKit Cache Mounts: Accelerating Package Manager Caches (npm, pip, apt, cargo)
A Docker build that reinstalls every dependency on every run is a build that wastes time. Package managers download from the network, unpack archives, and write to disk—work that is identical across builds unless the dependency files change. Layer caching helps only when the instruction sequence and inputs are unchanged. The moment you touch a…