From f8316f4304631c0b4fa4075423766f7a4f22367c Mon Sep 17 00:00:00 2001 From: techieankur277 <112583086+techieankur277@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:02:50 +0530 Subject: [PATCH] Update Dockerfile chnaging the image name into lowercase as when i was running the pipeline i was getting the warning. --- Docker-files/app/multistage/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]