mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Update Dockerfile
This commit is contained in:
parent
0c76f5eb50
commit
a3abfb567b
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ FROM openjdk:8-jre-alpine
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# copy jar into image
|
# copy jar into image
|
||||||
COPY target/*.jar /usr/bin/spring-petclinic.jar
|
COPY target/*.war /usr/bin/spring-petclinic.war
|
||||||
|
|
||||||
# run application with this command line
|
# run application with this command line
|
||||||
ENTRYPOINT ["java","-jar","/usr/bin/spring-petclinic.jar","--server.port=8080"]
|
ENTRYPOINT ["java","-jar","/usr/bin/spring-petclinic.war","--server.port=8080"]
|
||||||
|
|
Loading…
Reference in a new issue