@@ -94,15 +94,15 @@ RUN set -ex && \
9494 --with-http_secure_link_module \
9595 --with-http_stub_status_module \
9696 --with-http_auth_request_module \
97- --with-http_xslt_module=dynamic \
98- --with-http_image_filter_module=dynamic \
99- --with-http_geoip_module=dynamic \
97+ --with-http_xslt_module \
98+ --with-http_image_filter_module \
99+ --with-http_geoip_module \
100100 --with-threads \
101101 --with-stream \
102102 --with-stream_ssl_module \
103103 --with-stream_ssl_preread_module \
104104 --with-stream_realip_module \
105- --with-stream_geoip_module=dynamic \
105+ --with-stream_geoip_module \
106106 --with-http_slice_module \
107107 --with-mail \
108108 --with-mail_ssl_module \
@@ -111,10 +111,10 @@ RUN set -ex && \
111111 --with-http_v2_module \
112112 --with-http_v2_hpack_enc \
113113 --with-zlib=/usr/src/nginx-${NGINX_VERSION}/zlib \
114- --add-dynamic- module=/usr/src/nginx-${NGINX_VERSION}/ngx_brotli \
115- --add-dynamic- module=/usr/src/nginx-${NGINX_VERSION}/nginx-sticky-module-ng \
116- --add-dynamic- module=/usr/src/nginx-$NGINX_VERSION/nginx-ct \
117- --add-dynamic- module=/usr/src/nginx-${NGINX_VERSION}/headers-more-nginx-module \
114+ --add-module=/usr/src/nginx-${NGINX_VERSION}/ngx_brotli \
115+ --add-module=/usr/src/nginx-${NGINX_VERSION}/nginx-sticky-module-ng \
116+ --add-module=/usr/src/nginx-$NGINX_VERSION/nginx-ct \
117+ --add-module=/usr/src/nginx-${NGINX_VERSION}/headers-more-nginx-module \
118118 --with-openssl=/usr/src/nginx-${NGINX_VERSION}/openssl-${OPENSSL_VERSION} \
119119 && make -j$(getconf _NPROCESSORS_ONLN) \
120120 && make install \
@@ -125,7 +125,6 @@ RUN set -ex && \
125125 && install -m644 html/50x.html /usr/share/nginx/html/ \
126126 && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
127127 && strip /usr/sbin/nginx* \
128- && strip /usr/lib/nginx/modules/*.so \
129128 && nginx -V
130129
131130COPY --from=dhparam /dhparam.pem /etc/nginx/ssl/dhparam.pem
@@ -140,7 +139,6 @@ ENV TZ=UTC
140139COPY --from=builder /etc/nginx /etc/nginx
141140COPY --from=builder /usr/sbin/nginx /usr/sbin/nginx
142141COPY --from=builder /usr/bin/envsubst /usr/local/bin/envsubst
143- COPY --from=builder /usr/lib/nginx/ /usr/lib/nginx/
144142COPY --from=builder /usr/share/nginx /usr/share/nginx
145143COPY docker-entrypoint.sh /usr/local/bin/
146144
0 commit comments