tomcat apr Dockfile

曲珂發表於2018-04-12

基於 centos7.4 jdk1.7

RUN yum makecache && yum --nogpgcheck -y groupinstall 'Development Tools' && \
    yum --nogpgcheck -y install apr-devel openssl-devel

ADD 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 install

RUN echo $'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib \n\
export LD_LIBRARY_PATH' > /data/apps/tomcat/bin/setenv.sh

RUN rm -rf /data/apps/tomcat/webapps/*

CMD ["/bin/bash"]

 

相關文章