FROM centos
MAINTAINER zengxh
RUN yum install -y epel-release vim pcre-devel wget net-tools gcc zlib zlib-devel make openssl-devel
RUN wget http://nginx.org/download/nginx-1.12.0.tar.gz
RUN tar zxvf nginx-1.12.0.tar.gz
RUN mkdir -p /usr/local/nginx
RUN sed -i 's/50/160/g'  nginx-1.12.0/src/http/modules/ngx_http_autoindex_module.c
RUN cd nginx-1.12.0 && ./configure --prefix=/usr/local/nginx --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module && make && make install
EXPOSE 80
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]

 

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2021-07-14
  • 2021-09-25
  • 2021-07-25
  • 2021-09-16
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2021-12-04
  • 2021-07-03
  • 2022-12-23
  • 2022-02-13
  • 2021-09-07
  • 2021-11-12
相关资源
相似解决方案