This repository contains example of how to optimize docker image of an application based on Spring boot with layering feature.
Full post detailed the process available here :
https://redamessoudi.com/optimized-docker-images-for-spring-boot-apps/
This is the basic branch of the project with no docker stuff.
Check different branches for different optimizations.