DEV Community

Discussion on: Caching Docker builds in GitHub Actions: Which approach is the fastest? 🤔 A research.

Collapse
 
valentijnscholten profile image
valentijnscholten

To test out the potential gain, I tried running docker-compose build
on DEV Community’s repository. Without any caching, building the
web image took 9 minutes and 5 seconds. Using GitHub Package
Registry as a cache, the time to build the image has reduced to 37
seconds.

Great article and replies. At the risk of sounding stupid: How do you get docker-compose to use the cache? It doesn't have a --cache-from option.