1- FROM alpine:3.8
1+ FROM alpine:3.9
22
3- MAINTAINER NGINX Docker Maintainers " docker-maint@nginx.com"
3+ LABEL maintainer= " NGINX Docker Maintainers < docker-maint@nginx.com> "
44
55ENV NGINX_VERSION 1.14.2
66ENV NGX_BROTLI_COMMIT 8104036af9cff4b1d34f22d00ba857e2a93a243c
@@ -42,12 +42,15 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
4242 --with-threads \
4343 --with-stream \
4444 --with-stream_ssl_module \
45+ --with-stream_ssl_preread_module \
46+ --with-stream_realip_module \
47+ --with-stream_geoip_module=dynamic \
4548 --with-http_slice_module \
4649 --with-mail \
4750 --with-mail_ssl_module \
51+ --with-compat \
4852 --with-file-aio \
4953 --with-http_v2_module \
50- --with-ipv6 \
5154 --add-module=/usr/src/ngx_brotli \
5255 " \
5356 && addgroup -S nginx \
@@ -97,6 +100,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
97100 && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
98101 && mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
99102 && mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so \
103+ && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so \
100104 && ./configure $CONFIG \
101105 && make -j$(getconf _NPROCESSORS_ONLN) \
102106 && make install \
@@ -110,6 +114,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
110114 && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so \
111115 && install -m755 objs/ngx_http_geoip_module-debug.so /usr/lib/nginx/modules/ngx_http_geoip_module-debug.so \
112116 && install -m755 objs/ngx_http_perl_module-debug.so /usr/lib/nginx/modules/ngx_http_perl_module-debug.so \
117+ && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so \
113118 && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
114119 && strip /usr/sbin/nginx* \
115120 && strip /usr/lib/nginx/modules/*.so \
@@ -130,7 +135,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
130135 | xargs -r apk info --installed \
131136 | sort -u \
132137 )" \
133- && apk add --no-cache --virtual .nginx-rundeps $runDeps \
138+ && apk add --no-cache --virtual .nginx-rundeps tzdata $runDeps \
134139 && apk del .build-deps \
135140 && apk del .brotli-build-deps \
136141 && apk del .gettext \
@@ -145,4 +150,6 @@ COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
145150
146151EXPOSE 80 443
147152
153+ STOPSIGNAL SIGTERM
154+
148155CMD ["nginx" , "-g" , "daemon off;" ]
0 commit comments