DEV Community

Cover image for Tired of your Docker builds taking so long?
Pieter D
Pieter D

Posted on

Tired of your Docker builds taking so long?

I have some good news: Docker has a cache feature that can help you speed up your builds, and it is enabled out of the box. But the way you write your Dockerfiles has a big influence on how cacheable your builds are. If you rewrite a few parts of your Dockerfile, cache can help you cut precious time from your build.

How does Docker cache work? What makes a Dockerfile more cacheable? And how do you optimize the build process? This hands-on video takes a slow Dockerfile and optimizes it step by step:

Top comments (0)