@@ -2,12 +2,13 @@ FROM alpine:latest
22
33MAINTAINER NGINX Docker Maintainers
"[email protected] " 44
5- ENV NGINX_VERSION 1.9.11
5+ ENV NGINX_VERSION 1.9.12
66
77ENV GPG_KEYS B0F4253373F8F6F510D42178520A9993A1C052F8
88ENV CONFIG "\
99 --prefix=/etc/nginx \
1010 --sbin-path=/usr/sbin/nginx \
11+ --modules-path=/usr/lib/nginx/modules \
1112 --conf-path=/etc/nginx/nginx.conf \
1213 --error-log-path=/var/log/nginx/error.log \
1314 --http-log-path=/var/log/nginx/access.log \
@@ -33,6 +34,9 @@ ENV CONFIG "\
3334 --with-http_secure_link_module \
3435 --with-http_stub_status_module \
3536 --with-http_auth_request_module \
37+ --with-http_xslt_module=dynamic \
38+ --with-http_image_filter_module=dynamic \
39+ --with-http_geoip_module=dynamic \
3640 --with-threads \
3741 --with-stream \
3842 --with-stream_ssl_module \
5761 linux-headers \
5862 curl \
5963 gnupg \
64+ libxslt-dev \
65+ gd-dev \
66+ geoip-dev \
6067 && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEYS" \
6168 && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
6269 && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
@@ -69,13 +76,21 @@ RUN \
6976 && ./configure $CONFIG --with-debug \
7077 && make \
7178 && mv objs/nginx objs/nginx-debug \
79+ && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \
80+ && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
81+ && mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
7282 && ./configure $CONFIG \
7383 && make \
7484 && make install \
7585 && install -m755 objs/nginx-debug /usr/sbin/nginx-debug \
86+ && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so \
87+ && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so \
88+ && install -m755 objs/ngx_http_geoip_module-debug.so /usr/lib/nginx/modules/ngx_http_geoip_module-debug.so \
89+ && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
7690 && strip /usr/sbin/nginx* \
91+ && strip /usr/lib/nginx/modules/*.so \
7792 && runDeps="$( \
78- scanelf --needed --nobanner /usr/sbin/nginx \
93+ scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/*.so \
7994 | awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
8095 | sort -u \
8196 | xargs -r apk info --installed \
0 commit comments