Skip to content

Commit d4ec0a4

Browse files
committed
Merge branch 'sync-to-upstream'
2 parents d582ef3 + 989d547 commit d4ec0a4

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
ENV NGINX_VERSION 1.14.2
66
ENV 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

146151
EXPOSE 80 443
147152

153+
STOPSIGNAL SIGTERM
154+
148155
CMD ["nginx", "-g", "daemon off;"]

nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ http {
2828

2929
gzip on;
3030
brotli on;
31+
brotli_static on;
3132

3233
include /etc/nginx/conf.d/*.conf;
3334
}

nginx.vh.default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ server {
33
server_name localhost;
44

55
#charset koi8-r;
6-
#access_log /var/log/nginx/log/host.access.log main;
6+
#access_log /var/log/nginx/host.access.log main;
77

88
location / {
99
root /usr/share/nginx/html;

0 commit comments

Comments
 (0)