mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-06 10:31:11 +00:00
Add a Dockefile and configure the docker-maven-plugin
This commit is contained in:
parent
864580702f
commit
b96e1093d3
2 changed files with 32 additions and 1 deletions
8
src/main/docker/Dockerfile
Normal file
8
src/main/docker/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue