Dockerfile centos7_tomcat7.0.64_jdk7u80

FROM centos:7
MAINTAINER jiangzhehao WORKDIR /tmp
RUN yum -y install net-tools
ADD jdk-7u80-linux-x64.tar.gz /usr/local/
RUN rm -f /usr/local/jdk-7u80-linux-x64.tar.gz ENV JAVA_HOME=/usr/local/jdk1.7.0_80
ENV PATH=$JAVA_HOME/bin:$PATH
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ADD apache-tomcat-7.0.64.tar.gz /usr/local/
RUN rm -f /usr/local/apache-tomcat-7.0.64.tar.gz COPY server.xml /usr/local/apache-tomcat-7.0.64/conf/server.xml RUN chmod 777 /usr/local/apache-tomcat-7.0.64/bin/startup.sh EXPOSE 8080 #CMD ./usr/local/apache-tomcat-7.0.64/bin/startup.sh
ENTRYPOINT ["/usr/local/apache-tomcat-7.0.64/bin/catalina.sh", "run"]
上一篇:Linux如何查找大文件或目录总结及在全部目录中查找


下一篇:Artificial Intelligence Computing Conference(2018.09.12)