generated from snyk-partners/goof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (17 loc) · 849 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM maven:3-jdk-8-slim as build
RUN mkdir /usr/src/goof
WORKDIR /usr/src/goof
COPY pom.xml pom.xml
COPY src src
COPY todolist-core todolist-core
COPY todolist-web-common todolist-web-common
COPY todolist-web-struts todolist-web-struts
RUN --mount=target=$HOME/.m2,type=cache mvn install
FROM tomcat:9.0.93-jdk21-corretto
RUN mkdir /tmp/extracted_files
COPY web.xml /usr/local/tomcat/conf/web.xml
COPY --from=build /usr/src/goof/todolist-web-struts/target/todolist /usr/local/tomcat/webapps/todolist
COPY --from=build /usr/local/openjdk-8/bin/native2ascii /docker-java-home/jre/bin/native2ascii
COPY --from=build /usr/local/openjdk-8/lib/tools.jar /docker-java-home/jre/lib/tools.jar
#Uncomment the next line for log4shell vulnerability if using base tomcat image > 8.5.33
#ENV JAVA_OPTS="-Dcom.sun.jndi.ldap.object.trustURLCodebase=true"