Create Dockerfile

This commit is contained in:
lwj9812 2024-03-15 14:46:51 +09:00 committed by GitHub
parent 040ecfe1b5
commit 184ceed669
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM eclipse-temurin
CMD ["./mvnw","clean","package"]
ARG JAR_FILE_PATH=target/*.jar
COPY ${JAR_FILE_PATH} spring-petclinic.jar
ENTRYPOINT ["java","-jar", "spring-petclinic.jar"]