-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from tomcat:9-jre11 as base_app
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install curl
RUN mkdir /opt/faction
#Fix issue with sending emails
RUN sed -i 's/^jdk.tls.disabledAlgorithms/# jdk.tls.disabledAlgorithms/' /opt/java/openjdk/conf/security/java.security
#Remove this kruft
RUN rm -rf /usr/local/tomcat/webapps/manager
RUN rm -rf /usr/local/tomcat/webapps/host-manager
RUN rm -rf /usr/local/tomcat/webapps/docs
RUN rm -rf /usr/local/tomcat/webapps/examples
RUN rm -rf /usr/local/tomcat/webapps/ROOT
RUN wget https://github.com/factionsecurity/faction/releases/latest/download/faction.war -O /usr/local/tomcat/webapps/ROOT.war
#COPY ./target/faction.war /usr/local/tomcat/webapps/ROOT.war
EXPOSE 8080/tcp
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]