ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>[info] 构建 tomcat 镜像 1. 下载tar包并上传 JDK8下载地址:http://www.codebaoku.com/jdk/jdk-oracle-jdk1-8.html TomCat下载地址:https://tomcat.apache.org/download-80.cgi ![](https://img.kancloud.cn/09/58/0958a7e20289b8f8c489ad1072a125f9_931x178.png) 2. 编写 `dockerfile` ```console FROM centos MAINTAINER chuxin<420029810@qq.com> COPU readme.txt ADD apache-tomcat-8.5.89.tar.gz /usr/local/ ADD jdk-8u351-linux-x64.tar.gz /usr/local/ ENV MYPATH /usr/local WORKDIR $MYPATH ENV JAVA_HOME /usr/local/jdk1.8_351 ENV CLASPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ENV CATALINA_HOME /usr/local/apache-tomcat-8.5.89 ENV CATALINA_BASE /usr/local/apache-tomcat-8.5.89 ENV PATH $PATH:$JAVA_HOME:/bin:$CATALINA_HOME?lib:$CATALINA_HOME/bin EXPOSE 8080 CMD /usr/local/apache-tomcat-8.5.89/bin/startup.sh && tail -F /usr/local/apache-tomcat-8.5.89/bin/logs/catalina.out ```