diff --git a/Dockerfile b/Dockerfile index 1b5b115..73fae88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,35 +21,61 @@ RUN [ "$(sha256sum /tmp/openssl.tar.gz | awk '{print $1}')" = "$OPENSSL_CHECKSUM [ "$(sha256sum /tmp/pcre.tar.gz | awk '{print $1}')" = "$PCRE_CHECKSUM" ] && \ [ "$(sha256sum /tmp/zlib.tar.gz | awk '{print $1}')" = "$ZLIB_CHECKSUM" ] && \ [ "$(sha256sum /tmp/nginx.tar.gz | awk '{print $1}')" = "$CHECKSUM" ] && \ - apk add ca-certificates g++ gcc linux-headers make perl && \ + apk add build-base ca-certificates linux-headers perl && \ tar -C /tmp -xf /tmp/openssl.tar.gz && \ tar -C /tmp -xf /tmp/pcre.tar.gz && \ tar -C /tmp -xf /tmp/zlib.tar.gz && \ tar -C /tmp -xf /tmp/nginx.tar.gz && \ cd /tmp/nginx-$VERSION && \ ./configure \ - --with-cc-opt='-static' \ - --with-ld-opt='-static' \ - --sbin-path=/nginx \ - --conf-path=/etc/nginx/nginx.conf \ - --pid-path=/tmp/nginx.pid \ - --http-log-path=/dev/stdout \ - --error-log-path=/dev/stderr \ - --http-client-body-temp-path=/tmp/client_temp \ - --http-proxy-temp-path=/tmp/proxy_temp \ - --http-fastcgi-temp-path=/tmp/fastcgi_temp \ - --http-uwsgi-temp-path=/tmp/uwsgi_temp \ - --http-scgi-temp-path=/tmp/scgi_temp \ - --with-openssl=/tmp/openssl-$OPENSSL_VERSION \ - --with-pcre=/tmp/pcre-$PCRE_VERSION \ - --with-zlib=/tmp/zlib-$ZLIB_VERSION \ + --with-cc-opt="-static" \ + --with-ld-opt="-static" \ + --with-cpu-opt="generic" \ + --sbin-path="/bin/nginx" \ + --conf-path="/etc/nginx/nginx.conf" \ + --pid-path="/tmp/nginx.pid" \ + --http-log-path="/dev/stdout" \ + --error-log-path="/dev/stderr" \ + --http-client-body-temp-path="/tmp/client_temp" \ + --http-fastcgi-temp-path="/tmp/fastcgi_temp" \ + --http-proxy-temp-path="/tmp/proxy_temp" \ + --http-scgi-temp-path="/tmp/scgi_temp" \ + --http-uwsgi-temp-path="/tmp/uwsgi_temp" \ + --with-select_module \ + --with-poll_module \ + --with-threads \ --with-file-aio \ - --with-http_v2_module \ --with-http_ssl_module \ + --with-http_v2_module \ + --with-http_realip_module \ + --with-http_addition_module \ + # --with-http_xslt_module \ + # --with-http_image_filter_module \ + # --with-http_geoip_module \ + --with-http_sub_module \ + --with-http_dav_module \ + --with-http_flv_module \ + --with-http_mp4_module \ + --with-http_gunzip_module \ + --with-http_gzip_static_module \ + --with-http_auth_request_module \ + --with-http_random_index_module \ + --with-http_secure_link_module \ + --with-http_degradation_module \ + --with-http_slice_module \ --with-http_stub_status_module \ + # --with-http_perl_module \ + --with-mail \ + --with-mail_ssl_module \ --with-stream \ --with-stream_ssl_module \ - --with-threads && \ + --with-stream_realip_module \ + # --with-stream_geoip_module \ + --with-stream_ssl_preread_module \ + --with-compat \ + --with-pcre="/tmp/pcre-$PCRE_VERSION" \ + --with-zlib="/tmp/zlib-$ZLIB_VERSION" \ + --with-openssl="/tmp/openssl-$OPENSSL_VERSION" && \ make RUN mkdir -p /rootfs/bin && \