Spotter-VM/tomcat/Dockerfile

27 lines
1.0 KiB
Docker
Raw Normal View History

2018-01-26 21:58:29 +01:00
FROM alpine:3.7
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
2018-03-15 15:53:49 +01:00
# Install Java 1.8 JRE
2018-01-26 21:58:29 +01:00
apk --no-cache add openjdk8-jre-base paxctl \
# Fix grsec attributes to loosen memory protection restrictions
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/bin/java \
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/bin/keytool \
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/jre/bin/java \
&& paxctl -cm /usr/lib/jvm/java-1.8-openjdk/jre/bin/keytool \
2018-01-26 21:58:29 +01:00
# Cleanup
&& apk --no-cache del paxctl
2018-01-26 21:58:29 +01:00
RUN \
# Install Tomcat 8
2018-03-15 15:53:49 +01:00
wget http://mirror.hosting90.cz/apache/tomcat/tomcat-8/v8.0.50/bin/apache-tomcat-8.0.50.tar.gz -O /tmp/apache-tomcat-8.tgz \
2018-01-26 21:58:29 +01:00
&& tar xf /tmp/apache-tomcat-8.tgz -C /srv \
2018-03-15 15:53:49 +01:00
&& mv /srv/apache-tomcat-8.0.50 /srv/tomcat \
2018-01-26 21:58:29 +01:00
# Make catalina.sh available globally
&& ln -s /srv/tomcat/bin/catalina.sh /usr/bin/catalina.sh \
# Cleanup
&& rm -rf /srv/tomcat/webapps/ROOT /srv/tomcat/webapps/docs /srv/tomcat/webapps/examples /srv/tomcat/webapps/host-manager /srv/tomcat/webapps/manager \
&& rm -f /tmp/apache-tomcat-8.tgz
COPY docker/ /