Skip to content

Commit 68e9709

Browse files
authored
Update Dockerfile
1 parent 8048b72 commit 68e9709

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

Dockerfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
FROM alpine:latest
2-
1+
FROM alpine:3.10
32
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
4-
53
ENV NGINX_VERSION 1.16.1
6-
4+
ENV NGX_BROTLI_COMMIT e505dce68acc190cc5a1e780a3b0275e39f160ca
75
RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
86
&& CONFIG="\
97
--prefix=/etc/nginx \
@@ -50,10 +48,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
5048
--with-compat \
5149
--with-file-aio \
5250
--with-http_v2_module \
53-
--with-http_v3_module \
54-
--with-openssl=/usr/src/quiche/deps/boringssl \
55-
--with-quiche=/usr/src/quiche \
5651
--add-module=/usr/src/ngx_brotli \
52+
--with-http_v3_module \
53+
--with-openssl=/usr/src/quiche/deps/boringssl \
54+
--with-quiche=/usr/src/quiche
5755
" \
5856
&& addgroup -S nginx \
5957
&& adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
@@ -80,14 +78,23 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
8078
cmake \
8179
&& mkdir -p /usr/src \
8280
&& cd /usr/src \
83-
&& git clone --recursive https://github.com/eustas/ngx_brotli.git \
84-
&& git clone --recursive https://github.com/cloudflare/quiche \
81+
&& git clone --recursive https://github.com/google/ngx_brotli.git \
82+
&& git clone --recursive https://github.com/cloudflare/quiche.git \
83+
&& cd ngx_brotli \
84+
&& git checkout -b $NGX_BROTLI_COMMIT $NGX_BROTLI_COMMIT \
85+
&& cd .. \
8586
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
87+
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
88+
&& sha512sum nginx.tar.gz nginx.tar.gz.asc \
89+
&& export GNUPGHOME="$(mktemp -d)" \
90+
&& gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPG_KEYS" \
91+
&& gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \
92+
&& rm -rf "$GNUPGHOME" nginx.tar.gz.asc \
8693
&& mkdir -p /usr/src \
8794
&& tar -zxC /usr/src -f nginx.tar.gz \
8895
&& rm nginx.tar.gz \
8996
&& cd /usr/src/nginx-$NGINX_VERSION \
90-
&& patch -p01 < /usr/src/quiche/extras/nginx/nginx-1.16.patch \
97+
&& patch -p01 < ../quiche/extras/nginx/nginx-1.16.patch \
9198
&& ./configure $CONFIG --with-debug \
9299
&& make -j$(getconf _NPROCESSORS_ONLN) \
93100
&& mv objs/nginx objs/nginx-debug \

0 commit comments

Comments
 (0)