mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Create dockerfile
This commit is contained in:
parent
516722647a
commit
a723f966a9
1 changed files with 11 additions and 0 deletions
11
dockerfile
Normal file
11
dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM maven:3-amazoncorretto-17 AS build
|
||||
ADD . /spring-petclinic
|
||||
WORKDIR /sprig-petclinic
|
||||
RUN mvn package
|
||||
|
||||
|
||||
|
||||
FROM amazoncorretto:17-alpine-jdk
|
||||
LABEL project="spc"
|
||||
COPY --from=build /springpetclinic/target/spring-petclinic-3.2.0-SNAPSHOT.jar /spring-petclinic-3.2.0-SNAPSHOT.jar
|
||||
CMD [ "jav", "-jar", "/spring-petclinic-3.2.0-SNAPSHOT.jar" ]
|
Loading…
Reference in a new issue