1
1
FROM alpine:latest
2
2
3
- ENV NGINX_VERSION=1.24 .0
4
- ENV LIBRESSL_VERSION=3.8.2
3
+ ENV NGINX_VERSION=1.27 .0
4
+ ENV LIBRESSL_VERSION=3.8.4
5
5
6
- RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
6
+ RUN GPG_KEYS=D6786CE303D9A9022998DC6CC8464D549AF75C0A \
7
7
&& CONFIG="\
8
8
--prefix=/etc/nginx \
9
9
--sbin-path=/usr/sbin/nginx \
@@ -49,10 +49,12 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
49
49
--with-compat \
50
50
--with-file-aio \
51
51
--with-http_v2_module \
52
+ --with-http_v3_module \
52
53
--with-ipv6 \
53
54
--with-openssl=/usr/src/libressl-$LIBRESSL_VERSION \
54
55
--add-dynamic-module=/usr/src/ngx_headers_more \
55
56
--add-dynamic-module=/usr/src/ngx_brotli \
57
+ --add-dynamic-module=/usr/src/njs/nginx \
56
58
" \
57
59
&& addgroup -S nginx \
58
60
&& adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
@@ -87,9 +89,10 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
87
89
tzdata \
88
90
zlib \
89
91
zlib-dev \
92
+ mercurial \
90
93
\
91
- && curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx-$NGINX_VERSION .tar.gz \
92
- && curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx-$NGINX_VERSION .tar.gz.asc \
94
+ && curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
95
+ && curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
93
96
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz -o libressl-$LIBRESSL_VERSION.tar.gz \
94
97
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz.asc -o libressl-$LIBRESSL_VERSION.tar.gz.asc \
95
98
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl.asc -o libressl.asc \
@@ -105,18 +108,19 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
105
108
gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$GPG_KEYS" && found=yes && break; \
106
109
done; \
107
110
test -z "$found" && echo >&2 "error: failed to fetch GPG key $GPG_KEYS" && exit 1; \
108
- gpg --batch --verify nginx-$NGINX_VERSION .tar.gz.asc nginx-$NGINX_VERSION .tar.gz \
111
+ gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \
109
112
&& gpg --import libressl.asc \
110
113
&& gpg --batch --verify libressl-$LIBRESSL_VERSION.tar.gz.asc libressl-$LIBRESSL_VERSION.tar.gz \
111
114
&& rm -rf "$GNUPGHOME" libressl.asc "libressl-$LIBRESSL_VERSION.tar.gz.asc" \
112
115
&& mkdir -p /usr/src \
113
- && tar -zxC /usr/src -f nginx-$NGINX_VERSION .tar.gz \
114
- && rm nginx-$NGINX_VERSION .tar.gz \
116
+ && tar -zxC /usr/src -f nginx.tar.gz \
117
+ && rm nginx.tar.gz \
115
118
&& git clone --depth=1 --recurse-submodules https://github.com/google/ngx_brotli /usr/src/ngx_brotli \
116
119
&& git clone --depth=1 https://github.com/openresty/headers-more-nginx-module /usr/src/ngx_headers_more \
120
+ && hg clone http://hg.nginx.org/njs /usr/src/njs \
117
121
&& tar -zxC /usr/src -f libressl-$LIBRESSL_VERSION.tar.gz \
118
122
&& cd /usr/src/nginx-$NGINX_VERSION \
119
- && curl -fSL https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/0.5 /nginx__dynamic_tls_records_1.17.7 %2B.patch -o dynamic_tls_records.patch \
123
+ && curl -fSL https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master /nginx__dynamic_tls_records_1.25.1 %2B.patch -o dynamic_tls_records.patch \
120
124
&& patch -p1 < dynamic_tls_records.patch \
121
125
&& ./configure $CONFIG --with-debug \
122
126
&& make -j$(getconf _NPROCESSORS_ONLN) \
0 commit comments