Spotter-VM/lxc-shared/alpine3.11-tomcat7/image

29 lines
847 B
Plaintext
Raw Normal View History

2020-04-04 00:17:24 +02:00
IMAGE alpine3.11-tomcat7_7.0.103-200403
FROM alpine3.11-java8_8.242.08-200403
RUN EOF
# Install Tomcat 7
2020-04-04 00:17:24 +02:00
wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.103/bin/apache-tomcat-7.0.103.tar.gz -O - | tar xzf - -C /srv
2020-03-24 15:15:26 +01:00
mv /srv/apache-tomcat-* /srv/tomcat
# Make catalina.sh available globally
ln -s /srv/tomcat/bin/catalina.sh /usr/bin/catalina.sh
# Cleanup
rm -f /srv/tomcat/bin/tomcat-native.tar.gz
rm -f /srv/tomcat/temp/safeToDelete.tmp
rm -rf /srv/tomcat/webapps/*
EOF
COPY image.d
2019-09-18 11:29:58 +02:00
RUN EOF
# Create OS user
addgroup -S -g 8080 tomcat
adduser -S -u 8080 -h /srv/tomcat -s /bin/false -g tomcat -G tomcat tomcat
2020-03-20 15:21:16 +01:00
chgrp -R tomcat /srv/tomcat
chown -R tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
EOF
CMD /usr/bin/catalina.sh run