We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e517e4 commit 0761abfCopy full SHA for 0761abf
1 file changed
Dockerfile
@@ -1,7 +1,13 @@
1
-FROM maven:amazoncorretto as build
2
-WORKDIR /javaapp
+FROM ubuntu:latest AS checkout
+RUN apt update && apt install git -y && apt-get clean
3
+RUN git clone https://github.com/Sept-2024/java-example.git
4
+WORKDIR /java-example
5
+
6
+FROM maven:amazoncorretto AS build
7
+WORKDIR /app
8
COPY . .
-RUN mvn clean install
9
+RUN mvn clean package
10
+CMD ["bash"]
11
-FROM adhig93/tomcat-conf
-COPY --from=build /javaapp/target/*.war /usr/local/tomcat/webapps/
12
+FROM artisantek/tomcat:1
13
+COPY --from=build /app/target/*.war /usr/local/tomcat/webapps/
0 commit comments