Skip to content

Commit 0761abf

Browse files
authored
Update Dockerfile
1 parent 2e517e4 commit 0761abf

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
FROM maven:amazoncorretto as build
2-
WORKDIR /javaapp
1+
FROM ubuntu:latest AS checkout
2+
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
38
COPY . .
4-
RUN mvn clean install
9+
RUN mvn clean package
10+
CMD ["bash"]
511

6-
FROM adhig93/tomcat-conf
7-
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

Comments
 (0)