added all modules that do not require extra libraries, fixed musl-based build

This commit is contained in:
Ricard Bejarano 2021-01-25 00:01:58 +01:00
parent 95b892238f
commit b6cf55dbc7
No known key found for this signature in database
GPG key ID: 835D397AC7BB6B0F

View file

@ -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/pcre.tar.gz | awk '{print $1}')" = "$PCRE_CHECKSUM" ] && \
[ "$(sha256sum /tmp/zlib.tar.gz | awk '{print $1}')" = "$ZLIB_CHECKSUM" ] && \ [ "$(sha256sum /tmp/zlib.tar.gz | awk '{print $1}')" = "$ZLIB_CHECKSUM" ] && \
[ "$(sha256sum /tmp/nginx.tar.gz | awk '{print $1}')" = "$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/openssl.tar.gz && \
tar -C /tmp -xf /tmp/pcre.tar.gz && \ tar -C /tmp -xf /tmp/pcre.tar.gz && \
tar -C /tmp -xf /tmp/zlib.tar.gz && \ tar -C /tmp -xf /tmp/zlib.tar.gz && \
tar -C /tmp -xf /tmp/nginx.tar.gz && \ tar -C /tmp -xf /tmp/nginx.tar.gz && \
cd /tmp/nginx-$VERSION && \ cd /tmp/nginx-$VERSION && \
./configure \ ./configure \
--with-cc-opt='-static' \ --with-cc-opt="-static" \
--with-ld-opt='-static' \ --with-ld-opt="-static" \
--sbin-path=/nginx \ --with-cpu-opt="generic" \
--conf-path=/etc/nginx/nginx.conf \ --sbin-path="/bin/nginx" \
--pid-path=/tmp/nginx.pid \ --conf-path="/etc/nginx/nginx.conf" \
--http-log-path=/dev/stdout \ --pid-path="/tmp/nginx.pid" \
--error-log-path=/dev/stderr \ --http-log-path="/dev/stdout" \
--http-client-body-temp-path=/tmp/client_temp \ --error-log-path="/dev/stderr" \
--http-proxy-temp-path=/tmp/proxy_temp \ --http-client-body-temp-path="/tmp/client_temp" \
--http-fastcgi-temp-path=/tmp/fastcgi_temp \ --http-fastcgi-temp-path="/tmp/fastcgi_temp" \
--http-uwsgi-temp-path=/tmp/uwsgi_temp \ --http-proxy-temp-path="/tmp/proxy_temp" \
--http-scgi-temp-path=/tmp/scgi_temp \ --http-scgi-temp-path="/tmp/scgi_temp" \
--with-openssl=/tmp/openssl-$OPENSSL_VERSION \ --http-uwsgi-temp-path="/tmp/uwsgi_temp" \
--with-pcre=/tmp/pcre-$PCRE_VERSION \ --with-select_module \
--with-zlib=/tmp/zlib-$ZLIB_VERSION \ --with-poll_module \
--with-threads \
--with-file-aio \ --with-file-aio \
--with-http_v2_module \
--with-http_ssl_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_stub_status_module \
# --with-http_perl_module \
--with-mail \
--with-mail_ssl_module \
--with-stream \ --with-stream \
--with-stream_ssl_module \ --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 make
RUN mkdir -p /rootfs/bin && \ RUN mkdir -p /rootfs/bin && \