下载地址wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.56/bin/apache-tomcat-8.5.56.tar.gz
Dockerfile 配置文件
FROM swr.cn-north-4.myhuaweicloud.com/hwstaff_imagemarket/openjdk-aarch64:8
MAINTAINER zhouhongfe
ENV CATALINA_HOME /usr/local/tomcat
ENV PATH $PATH:$CATCHA_HOME/bin
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y zip unzip telnet
COPY ./apache-tomcat-8.5.56.tar.gz /usr/local
RUN cd /usr/local && tar zxvf apache-tomcat-8.5.56.tar.gz && mv apache-tomcat-8.5.56 tomcat
RUN cd /usr/local && rm -f apache-tomcat-8.5.56.tar.gz
WORKDIR /usr/local/tomcat
EXPOSE 8080
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]
build镜像文件
docker build -t tomcat8:arm .
启动脚本 tomcat.sh
docker run -d --restart always --name tomcat8 -p 8091:8080 tomcat8:arm