mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
My dockerfile proposal v1
This commit is contained in:
parent
397be45af8
commit
4513d3b453
1 changed files with 6 additions and 0 deletions
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM openjdk:17-jdk-slim@sha256:9a37f2c649301b955c2fd31fb180070404689cacba0f77404dd20afb1d7b8d84
|
||||
ARG app_version=4.0.7
|
||||
LABEL application_version=${app_version}
|
||||
WORKDIR /app
|
||||
COPY target/checkout/target/spring-petclinic-${app_version}.jar /app/java-application.jar
|
||||
CMD ["java", "-jar", "java-application.jar"]
|
Loading…
Reference in a new issue