Files
Aaron 63285f61aa
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
first commit
2025-09-06 16:08:15 +08:00

18 lines
689 B
Docker

FROM tomcat:8.5
LABEL maintainer="phithon <root@leavesongs.com>"
ARG ST2_VERSION=2.3.32
ARG WEB_DIR=/usr/local/tomcat/webapps
RUN set -ex \
&& rm -rf ${WEB_DIR}/* \
&& chmod a+x /usr/local/tomcat/bin/*.sh \
\
&& wget http://archive.apache.org/dist/struts/${ST2_VERSION}/struts-${ST2_VERSION}-apps.zip -O /tmp/struts-${ST2_VERSION}-apps.zip \
&& unzip /tmp/struts-${ST2_VERSION}-apps.zip -d /tmp/ \
&& mv /tmp/struts-${ST2_VERSION}/apps/struts2-showcase.war ${WEB_DIR}/ROOT.war \
&& rm -rf /tmp/struts* \
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' $JAVA_HOME/lib/security/java.security
EXPOSE 8080