mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-08 11:21:11 +00:00
8 lines
414 B
Docker
8 lines
414 B
Docker
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"]
|