FROM centos
MAINTAINER zzx<[email protected]>
ADD jdk-8u212-linux-x64.tar.gz /usr/local
ADD apache-tomcat-9.0.65.tar.gz /usr/local
RUN yum -y install vim
ENV MYPATH /usr/local
WORKDIR $MYPATH
ENV JAVA_HOME /usr/local/jdk1.8.0_212
ENV CLASSPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV CATALINA_HOME /usr/local/apache-tomcat-9.0.65
ENV CATALINA_BASE /usr/local/apache-tomcat-9.0.65
ENV PATH $PATH:$JAVA_HOME/bin:$CATALINA_HOME/lib:$CATALINA_HOME/bin
EXPOSE 8080
CMD /usr/local apache-tomcat-9.0.65/bin/startup.sh && tail -F /url/local/apache-tomcat-9.0.65/bin/logs/catalina.out
明天补完。。。
标签:总结,9.0,本周,usr,ENV,HOME,Docker,local,65 From: https://www.cnblogs.com/zhuangzhongxu/p/16653636.html