其他分享
首页 > 其他分享> > 本周总结(Docker)

本周总结(Docker)

作者:互联网

FROM centos
MAINTAINER zzx<2953488214@qq.com>

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
来源: https://www.cnblogs.com/zhuangzhongxu/p/16653636.html