Skip to content

Commit 429d479

Browse files
committed
Remove dynamic module
1 parent aaea403 commit 429d479

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

131130
COPY --from=dhparam /dhparam.pem /etc/nginx/ssl/dhparam.pem
@@ -140,7 +139,6 @@ ENV TZ=UTC
140139
COPY --from=builder /etc/nginx /etc/nginx
141140
COPY --from=builder /usr/sbin/nginx /usr/sbin/nginx
142141
COPY --from=builder /usr/bin/envsubst /usr/local/bin/envsubst
143-
COPY --from=builder /usr/lib/nginx/ /usr/lib/nginx/
144142
COPY --from=builder /usr/share/nginx /usr/share/nginx
145143
COPY docker-entrypoint.sh /usr/local/bin/
146144

conf/nginx.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ worker_processes auto;
44
pid /var/run/nginx.pid;
55
worker_rlimit_nofile 65535;
66

7-
load_module "modules/ngx_http_brotli_filter_module.so";
8-
load_module "modules/ngx_http_brotli_static_module.so";
9-
load_module "modules/ngx_http_headers_more_filter_module.so";
10-
117
events {
128
use epoll;
139
worker_connections 65535;

0 commit comments

Comments
 (0)