-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 981 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (19 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
#Raise Tomcat's 2MB POST limit so large base64 image uploads work (25MB)
RUN sed -i 's/<Connector port="8080"/<Connector maxPostSize="26214400" port="8080"/' /usr/local/tomcat/conf/server.xml
#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"]