A sample spring boot rest service with docker packaging using springboot maven plugin.
Spring boot with its 2.3.0.M1 release onwards have introduced capability to build docker images using buildpacks. The detailed blog and instructions of using the project is described in blog.
- Clean compile
$ mvn clean compile
- Build image
$ mvn spring-boot:build-image
See the logs and you can find the containerizing steps and image gets pushed to the defined registry.