diff --git a/Docker-files/app/multistage/Dockerfile b/Docker-files/app/multistage/Dockerfile index 4163bed27..0500c9370 100644 --- a/Docker-files/app/multistage/Dockerfile +++ b/Docker-files/app/multistage/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:11 AS BUILD_IMAGE +FROM openjdk:11 AS build_image RUN apt update && apt install maven -y RUN git clone https://github.com/devopshydclub/vprofile-project.git RUN cd vprofile-project && git checkout docker && mvn install @@ -7,7 +7,7 @@ FROM tomcat:9-jre11 RUN rm -rf /usr/local/tomcat/webapps/* -COPY --from=BUILD_IMAGE vprofile-project/target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war +COPY --from=build_image vprofile-project/target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war EXPOSE 8080 CMD ["catalina.sh", "run"]