mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
Create Dockerfile
This commit is contained in:
parent
26a6318269
commit
beb408b7a4
1 changed files with 5 additions and 0 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue