Update Dockerfile

This commit is contained in:
Stas Bezuhlyi 2021-04-08 23:32:30 +03:00 committed by GitHub
parent 006858e2ea
commit 20224db0e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
FROM java:8
COPY target/spring-petclinic-2.4.2.jar /
FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8080
CMD java - jar spring-petclinic-2.4.2.jar
ENTRYPOINT ["java","-jar","/app.jar"]