mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Update dockerfile for working directory changes
This commit is contained in:
parent
56a99b830c
commit
dc897bce87
1 changed files with 13 additions and 3 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,4 +1,14 @@
|
||||||
FROM openjdk:8-jdk-alpine
|
FROM alpine/git
|
||||||
LABEL maintainer="mrcool435@gmail.com"
|
LABEL maintainer="mrcool435@gmail.com"
|
||||||
COPY /target/spring-petclinic-1.5.1.jar /home/spring-petclinic-1.5.1.jar
|
WORKDIR /app
|
||||||
CMD ["java","-jar","/home/spring-petclinic-1.5.1.jar"]
|
RUN git clone https://github.com/Sanjeev435/spring-petclinic.git
|
||||||
|
|
||||||
|
FROM maven:3.5.4-jdk-8
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=0 /app/spring-petclinic /app
|
||||||
|
RUN mvn install -Dmaven.test.skip=true
|
||||||
|
|
||||||
|
FROM openjdk:8-jdk-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=1 /app/target/spring-petclinic-1.5.1.jar /app
|
||||||
|
CMD ["java","-jar","spring-petclinic-1.5.1.jar"]
|
||||||
|
|
Loading…
Reference in a new issue