Add a Dockefile and configure the docker-maven-plugin

This commit is contained in:
Antoine Rey 2016-08-29 18:47:47 +02:00
parent 864580702f
commit b96e1093d3
2 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,8 @@
FROM openjdk:alpine
MAINTAINER Antoine Rey <antoine.rey@free.fr>
# Spring Boot application creates working directories for Tomcat by default
VOLUME /tmp
ADD petclinic.war petclinic.war
RUN sh -c 'touch /petclinic.war'
# To reduce Tomcat startup time we added a system property pointing to "/dev/urandom" as a source of entropy.
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/petclinic.war"]