Speed up Maven Docker builds with Cache

Featured image

A blog post has been published on containers.fan

Caching with Docker

I’ve run into a issue where maven based docker builds takes quite some time due to maven requires to pull down the dependencies during each build, and in the post below, I demonstrate how I use buildkit to cache the ~/.m2 directory inside the container to reduce builds from 220s to 8s.

To read more, check out this post:

Thank You

Thanks for reading, if you like my content, check out my website or follow me at @ruanbekker on Twitter.