Docker image for Spring Boot with openjdk 8.
Spring Boot is the starting point for building all Spring-based applications. Spring Boot is designed to get you up and running as quickly as possible, with minimal upfront configuration of Spring.
You can pull the image from hub.docker.com
.
$ docker pull bingozb/springboot
Or, you can build with source repository by yourself.
$ git clone https://github.com/bingozb/docker-springboot.git
$ cd docker-springboot
$ docker build -t bingozb/springboot .
Run the container and volume your fat jar to /app/app.jar
.
e.g.:
$ docker run --restart always -d \
--name springboot \
-p 8080:8080 \
-v /path/to/app.jar:/app/app.jar \
bingozb/springboot
Maven and Gradle support, if they are necessary.