Skip to content

Instantly share code, notes, and snippets.

@adiov
Created November 6, 2018 16:22
Show Gist options
  • Save adiov/231ad96eb517afffc9c8697f2411a20d to your computer and use it in GitHub Desktop.
Save adiov/231ad96eb517afffc9c8697f2411a20d to your computer and use it in GitHub Desktop.
FROM tomcat:8.5
RUN set -ex \
&& rm -rf /usr/local/tomcat/webapps/* \
&& chmod a+x /usr/local/tomcat/bin/*.sh
RUN curl http://mirror.netinch.com/pub/apache/struts/2.5.18/struts-2.5.18-all.zip --output struts-2.5.18-all.zip
RUN unzip struts-2.5.18-all.zip && cp struts-2.5.18/apps/struts2-showcase.war /usr/local/tomcat/webapps/struts.war
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment