Create Dockerfile

This commit is contained in:
s4616 2023-07-07 16:58:17 +09:00 committed by GitHub
parent 26a6318269
commit beb408b7a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM adoptopenjdk/openjdk11 # 17버전 openjdk:17.0.2-oracle
CMD ["./mvnw", "clean", "package"]
ARG JAR_FILE_PATH=target/*.jar
COPY ${JAR_FILE_PATH} spring-petclinic.jar
ENTRYPOINT ["java", "-jar", "spring-petclinic.jar"]