This tutorial will introduce three techniques for building a Spring Boot java application into a Docker image using Maven.

We walked through using Spring Boot natively, and the Jib plugin from Google, both of which will work without needing to create a Dockerfile. Finally, we looked briefly at the Dockerfile-maven plugin written by Spotify which is now mature and stable, but no longer being actively enhanced.

#spring-boot #java

Build a Docker image using Maven and Spring Boot
1.40 GEEK