random change

This commit is contained in:
Ivaylo Hristov 2017-06-21 14:51:35 +02:00
parent a5c39a50cf
commit ed6c518f86

View file

@ -9,9 +9,9 @@ COPY . .
# Build the project
RUN mvn package -Dskip.failsafe.tests -q --batch-mode
# Make the jar executable
RUN sh -c 'touch target/spring-petclinic-*.jar'
# Copy and make the jar executable
RUN sh -c 'cp target/spring-petclinic-*.jar app.jar && touch app.jar'
#Start the project
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar target/spring-petclinic-*.jar" ]
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar" ]