Update Dockerfile

This commit is contained in:
Oleksandr Butenko 2021-06-14 22:00:09 +03:00 committed by GitHub
parent 208eadb542
commit 7be3749e9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM openjdk:16-alpine3.13 FROM java:8
WORKDIR /app WORKDIR /
COPY target/spring-petclinic-2.4.5.jar . COPY target/spring-petclinic-2.4.5.jar .
CMD [ "java", "-jar spring-petclinic-2.4.5.jar" ] EXPOSE 8080
CMD [ "java", "-jar", "spring-petclinic-2.4.5.jar" ]