2019-09-18 11:29:58 +02:00
|
|
|
IMAGE alpine3.9-tomcat8.5_8.5.41-190620
|
2019-06-25 15:56:35 +02:00
|
|
|
|
2019-09-18 11:29:58 +02:00
|
|
|
LAYER alpine3.9_3.9.4-190620
|
|
|
|
LAYER alpine3.9-java8_8.212.04-190620
|
2019-03-01 12:21:18 +01:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Install Tomcat 8.5
|
2019-06-01 20:03:09 +02:00
|
|
|
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.41/bin/apache-tomcat-8.5.41.tar.gz -O - | tar xzf - -C /srv
|
|
|
|
mv /srv/apache-tomcat-8.5.41 /srv/tomcat
|
2019-03-01 12:21:18 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
mkdir /srv/tomcat/webapps
|
|
|
|
|
|
|
|
# Change permission
|
|
|
|
find /srv/tomcat -type d -exec chmod 755 {} +
|
|
|
|
find /srv/tomcat -type f -not -path '/srv/tomcat/conf/*' -exec chmod 644 {} +
|
|
|
|
chmod 755 /srv/tomcat/bin/*.sh
|
|
|
|
EOF
|
|
|
|
|
|
|
|
COPY lxc
|
2019-09-18 11:29:58 +02:00
|
|
|
|
|
|
|
RUN catalina.sh run
|