DEV Community

Pablo Padilla
Pablo Padilla

Posted on

Docker cache for multi-module Maven project

This project demonstrates how to write a multi-stage Dockerfile for a multi-module Maven project, so that Maven dependencies are cached in the early Docker layers of a builder stage and also how to use a layered JAR to create cache layers in the final Docker image.

In this project the user-app module depends on a common module.

The full sources are in Github: https://github.com/pgpbpadilla/maven-multi-module-docker-cache

Top comments (0)