Skip to content

Commit

Permalink
Update MultiStageDockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Sep 28, 2021
1 parent 0f3e6fe commit be3e43f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MultiStageDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ FROM alpine/git as repo
MAINTAINER [email protected]

WORKDIR /app
RUN git clone https://github.com/LandmakTechnology/maven-web-app.git
RUN git clone https://github.com/LandmakTechnology/maven-web-application.git

#Maven
FROM maven:3.5-jdk-8-alpine as build
WORKDIR /app
COPY --from=repo /app/maven-web-app /app
COPY --from=repo /app/maven-web-application /app
RUN mvn install

#Tomcat
FROM tomcat:8.0.20-jre8
COPY --from=build /app/target/maven-web-app*.war /usr/local/tomcat/webapps/maven-web-app.war
#COPY /app/target/*war /usr/local/tomcat/webapps/maven-web-app.war
COPY --from=build /app/target/*war /usr/local/tomcat/webapps/

0 comments on commit be3e43f

Please sign in to comment.