mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
Dockerfile added
This commit is contained in:
parent
02babdd8cb
commit
76b3b07c6e
1 changed files with 9 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM maven:3.6.3-jdk-8 AS build-env
|
||||
|
||||
COPY . ./
|
||||
|
||||
FROM openjdk:8-jre-alpine
|
||||
EXPOSE 8080
|
||||
|
||||
COPY --from=build-env /target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic.jar
|
||||
CMD ["java", "-jar", "/spring-petclinic.jar"]
|
Loading…
Reference in a new issue