mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
added resources
This commit is contained in:
parent
90a4437b2e
commit
c558caa513
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ COPY . .
|
||||||
RUN mvn package -Dskip.failsafe.tests -q --batch-mode
|
RUN mvn package -Dskip.failsafe.tests -q --batch-mode
|
||||||
|
|
||||||
# Copy and make the jar executable
|
# Copy and make the jar executable
|
||||||
RUN sh -c 'cp target/spring-petclinic-*.jar app.jar && touch app.jar'
|
RUN sh -c 'cp -r target/ dist/ && touch dist/app.jar'
|
||||||
|
|
||||||
#Start the project
|
#Start the project
|
||||||
ENV JAVA_OPTS=""
|
ENV JAVA_OPTS=""
|
||||||
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar" ]
|
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar dist/app.jar" ]
|
||||||
|
|
Loading…
Reference in a new issue