FROM centosMAINTAINER taohaijun "thjtao@126.com"WORKDIR /home#上传安装包COPY jdk-8u131-linux-x64.rpm /home/#安装JDKRUN rpm -ivh /home/jdk-8u131-linux-x64.rpm && rm -rf /home/jdk-8u131-linux-x64.rpm#设置环境变量ENV JAVA_HOME /usr/java/jdk1.8.0_131ENV PATH $PATH:$JAVA_HOME/bin#安装tomcatRUN mkdir Tomcat COPY apache-tomcat-7.0.82.tar.gz /home/RUN tar zxf /home/apache-tomcat-7.0.82.tar.gz -C /home/Tomcat && rm -rf /home/apache-tomcat-7.0.82.tar.gz#部署项目COPY fhm.war /home/Tomcat/apache-tomcat-7.0.82/webappsEXPOSE 8080#启动容器ENTRYPOINT /home/Tomcat/apache-tomcat-7.0.82/bin/startup.sh && tail -f /home/Tomcat/apache-tomcat-7.0.82/logs/catalina.out
docker build -t tomcat-fhm:1.0 /home/