mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
Update Dockerfile
This commit is contained in:
parent
c2162298f3
commit
fa4c21b4f9
1 changed files with 3 additions and 14 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,15 +1,4 @@
|
||||||
FROM alpine/git as clone
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
RUN echo "Switch started"
|
|
||||||
RUN git clone https://github.com/Sanjeev435/spring-petclinic.git
|
|
||||||
|
|
||||||
FROM maven:3.5.4-jdk-8-alpine as build
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=clone /app/spring-petclinic /app
|
|
||||||
RUN mvn install -Dmaven.test.skip=true
|
|
||||||
|
|
||||||
FROM openjdk:8-jdk-alpine
|
FROM openjdk:8-jdk-alpine
|
||||||
WORKDIR /app
|
LABEL maintainer="mrcool435@gmail.com"
|
||||||
COPY --from=build /app/target/spring-petclinic-1.5.1.jar /app
|
COPY /target/spring-petclinic-2.0.0.BUILD-SNAPSHOT.jar /home/spring-petclinic-2.0.0.BUILD-SNAPSHOT.jar
|
||||||
CMD ["java","-jar","spring-petclinic-1.5.1.jar"]
|
CMD ["java","-jar","/home/spring-petclinic-2.0.0.BUILD-SNAPSHOT.jar"]
|
||||||
|
|
Loading…
Reference in a new issue