Files
vulhub/base/struts2/2.3.34-showcase/Dockerfile
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

19 lines
724 B
Docker

FROM tomcat:8.5
LABEL maintainer="phithon <root@leavesongs.com>"
ARG ST2_VERSION=2.3.34
ARG WEB_DIR=/usr/local/tomcat/webapps
RUN set -ex \
&& rm -rf ${WEB_DIR}/* \
&& chmod a+x /usr/local/tomcat/bin/*.sh \
&& mkdir ${WEB_DIR}/ROOT/ \
\
&& 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/ \
&& unzip /tmp/struts-${ST2_VERSION}/apps/struts2-showcase.war -d ${WEB_DIR}/ROOT/ \
&& 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