基于 centos7.4 jdk1.7
RUN yum makecache && yum --nogpgcheck -y groupinstall 'Development Tools' && \ yum --nogpgcheck -y install apr-devel openssl-develADD apache-tomcat-7.0.85.tar.gz /data/apps/RUN ln -s /data/apps/apache-tomcat-7.0.85 /data/apps/tomcat && \ tar zxf /data/apps/tomcat/bin/tomcat-native.tar.gz -C /tmp && \ cd /tmp/tomcat-native-1.2.16-src/native && \ ./configure --prefix=/data/apps/tomcat && make && make installRUN echo $'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib \n\export LD_LIBRARY_PATH' > /data/apps/tomcat/bin/setenv.shRUN rm -rf /data/apps/tomcat/webapps/*CMD ["/bin/bash"]