新增tomcat9镜像

This commit is contained in:
fastjrun 2021-12-12 18:21:47 +08:00
parent ddb64fb67c
commit 517025360f
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ARG TOMCAT_VERSION=9.0.56
ADD "https://archive.apache.org/dist/tomcat/tomcat-9/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz" /opt
RUN cd /opt && tar -zxf apache-tomcat-$TOMCAT_VERSION.tar.gz \
&& mv /opt/apache-tomcat* /opt/tomcat9 \
&& mv apache-tomcat-9.0.56 tomcat9 \
&& rm -rf /opt/tomcat9/webapps/examples \
&& rm -rf /opt/apache-tomcat-$TOMCAT_VERSION.tar.gz \
&& rm -rf /tmp/* /var/cache/* /usr/share/doc/* /usr/share/man/* /var/lib/apt/lists/*