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"]