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
3d23ac00cc
commit
0c76f5eb50
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
# Alpine Linux with OpenJDK JRE
|
||||
FROM openjdk:8-jre-alpine
|
||||
|
||||
EXPOSE 8181
|
||||
EXPOSE 8080
|
||||
|
||||
# copy jar into image
|
||||
COPY target/spring-petclinic-2.2.0.BUILD-SNAPSHOT.jar /usr/bin/spring-petclinic.jar
|
||||
COPY target/*.jar /usr/bin/spring-petclinic.jar
|
||||
|
||||
# run application with this command line
|
||||
ENTRYPOINT ["java","-jar","/usr/bin/spring-petclinic.jar","--server.port=8181"]
|
||||
ENTRYPOINT ["java","-jar","/usr/bin/spring-petclinic.jar","--server.port=8080"]
|
||||
|
|
Loading…
Reference in a new issue