美文网首页
Docker 安装 openresty

Docker 安装 openresty

作者: wuyuan0127 | 来源:发表于2018-06-21 20:17 被阅读0次

    下载openresty:

    wget https://openresty.org/download/openresty-1.13.6.1.tar.gz

    tar zxvf openresty-1.13.6.1.tar.gz

    准备启动 openresty脚本:   start.sh

    #nginx -c /usr/local/openresty/nginx/conf/nginx.conf

    nginx -g "daemon off;"

    Dockerfile内容:

    from centos

    COPY ./start.sh /

    COPY openresty-1.13.6.1 /home/openresty-1.13.6.1

    RUN yum -y install readline-devel pcre pcre-devel openssl openssl-devel gcc curl GeoIP-devel wget

    RUN cd /home/openresty-1.13.6.1 && chmod +x  configure  && ./configure --with-luajit --with-pcre --with-http_gzip_static_module --with-http_realip_module --with-http_geoip_module --with-http_ssl_module  --with-http_stub_status_module \

    && make && make install

    ENV NGINX_HOME=/usr/local/openresty/nginx

    ENV PATH $NGINX_HOME/sbin:$PATH

    RUN chmod +x /start.sh

    ENTRYPOINT ["sh","/start.sh"]

    EXPOSE 80

    相关文章

      网友评论

          本文标题:Docker 安装 openresty

          本文链接:https://www.haomeiwen.com/subject/wswcyftx.html