赞
踩
FROM centos:7 # 作者 MAINTAINER chenxiaodong<2774398338@qq.com> # 添加压缩文件到指定 目录 ADD jdk-8u291-linux-x64.tar.gz /usr/local ADD apache-tomcat-8.5.29.tar.gz /usr/local # 安装 vim RUN yum -y install vim # 环境变量 # 进入容器后的默认工作目录 ENV MYPATH /usr/local WORKDIR $MYPATH ENV JAVA_HOME /usr/local/jdk1.8.0_291 ENV CLASSPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ENV CATALINA_HOME /usr/local/apache-tomcat-8.5.29 ENV CATALINA_BASE /usr/local/apache-tomcat-8.5.29 ENV PATH $PATH:$JAVA_HOME/bin:$CATALINA_HOME/lib:$CATALINA_HOME/bin EXPOSE 8080 CMD ["catalina.sh", "run"]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。