28 lines
824 B
Plaintext
28 lines
824 B
Plaintext
IMAGE alpine3.11-tomcat7_7.0.99-200313
|
|
FROM alpine3.11-java8_8.242.08-200313
|
|
|
|
RUN EOF
|
|
# Install Tomcat 7
|
|
wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.99/bin/apache-tomcat-7.0.99.tar.gz -O - | tar xzf - -C /srv
|
|
mv /srv/apache-tomcat-7.0.99 /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
|
|
|
|
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
|
|
chown -R tomcat:tomcat /srv/tomcat/conf /srv/tomcat/logs /srv/tomcat/temp /srv/tomcat/webapps /srv/tomcat/work
|
|
EOF
|
|
|
|
CMD /usr/bin/catalina.sh run
|