Skip to content

Commit 89f7997

Browse files
committed
alpine: added perl dynamic module to the build.
The only part that is left unsynced with the Debian image is the support for nJScript. I will wait for the official release before including it to alpine build because there is no sane way to fetch and authenticate njs sources yet.
1 parent 2b0b293 commit 89f7997

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mainline/alpine/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ENV CONFIG "\
3737
--with-http_xslt_module=dynamic \
3838
--with-http_image_filter_module=dynamic \
3939
--with-http_geoip_module=dynamic \
40+
--with-http_perl_module=dynamic \
4041
--with-threads \
4142
--with-stream \
4243
--with-stream_ssl_module \
@@ -64,6 +65,7 @@ RUN \
6465
libxslt-dev \
6566
gd-dev \
6667
geoip-dev \
68+
perl-dev \
6769
&& curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
6870
&& curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
6971
&& export GNUPGHOME="$(mktemp -d)" \
@@ -80,6 +82,7 @@ RUN \
8082
&& mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \
8183
&& mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
8284
&& mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
85+
&& mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so \
8386
&& ./configure $CONFIG \
8487
&& make \
8588
&& make install \
@@ -92,6 +95,7 @@ RUN \
9295
&& install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so \
9396
&& install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so \
9497
&& install -m755 objs/ngx_http_geoip_module-debug.so /usr/lib/nginx/modules/ngx_http_geoip_module-debug.so \
98+
&& install -m755 objs/ngx_http_perl_module-debug.so /usr/lib/nginx/modules/ngx_http_perl_module-debug.so \
9599
&& ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
96100
&& strip /usr/sbin/nginx* \
97101
&& strip /usr/lib/nginx/modules/*.so \

0 commit comments

Comments
 (0)