Update Dockerfile

This commit is contained in:
Kunchala Vikram 2022-02-13 00:30:00 +05:30 committed by GitHub
parent 0c76f5eb50
commit a3abfb567b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]