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