FROM centosMAINTAINER zengxhRUN yum install -y epel-release vim pcre-devel wget net-tools gcc zlib zlib-devel make openssl-develRUN wget http://nginx.org/download/nginx-1.12.0.tar.gzRUN tar zxvf nginx-1.12.0.tar.gzRUN mkdir -p /usr/local/nginxRUN sed -i 's/50/160/g' nginx-1.12.0/src/http/modules/ngx_http_autoindex_module.cRUN 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 installEXPOSE 80CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]