参考官网:https://spring.io/guides/gs/spring-boot-docker/
Dockerfile
FROM openjdk:8-jdk-alpine
VOLUME /tmp
COPY ./target/controlserver-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
$ docker build . -t check-control-server
$ docker run check-control-server