This Dockerfile uses a multistage build to build a Java application using Maven in one container, copy the built artifact to a Tomcat container, and run the application in Tomcat on port 8080. It clones a GitHub repository containing a Java app, builds it with Maven, copies the WAR file from the build stage to the Tomcat stage, removes existing webapps, and exposes port 8080 to run the application.
This Dockerfile uses a multistage build to build a Java application using Maven in one container, copy the built artifact to a Tomcat container, and run the application in Tomcat on port 8080. It clones a GitHub repository containing a Java app, builds it with Maven, copies the WAR file from the build stage to the Tomcat stage, removes existing webapps, and exposes port 8080 to run the application.
This Dockerfile uses a multistage build to build a Java application using Maven in one container, copy the built artifact to a Tomcat container, and run the application in Tomcat on port 8080. It clones a GitHub repository containing a Java app, builds it with Maven, copies the WAR file from the build stage to the Tomcat stage, removes existing webapps, and exposes port 8080 to run the application.
This Dockerfile uses a multistage build to build a Java application using Maven in one container, copy the built artifact to a Tomcat container, and run the application in Tomcat on port 8080. It clones a GitHub repository containing a Java app, builds it with Maven, copies the WAR file from the build stage to the Tomcat stage, removes existing webapps, and exposes port 8080 to run the application.
RUN apt update && apt install maven -y RUN git clone -b vp-docker https://github.com/imranvisualpath/vprofile-repo.git RUN cd vprofile-repo && mvn install