Skip to content

Commit fd45500

Browse files
committed
nginx: stable=1.26.1
1 parent c7873ad commit fd45500

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

stable-alpine.Dockerfile

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM alpine:latest
22

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
55

6-
RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
6+
RUN GPG_KEYS=D6786CE303D9A9022998DC6CC8464D549AF75C0A \
77
&& CONFIG="\
88
--prefix=/etc/nginx \
99
--sbin-path=/usr/sbin/nginx \
@@ -49,10 +49,12 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
4949
--with-compat \
5050
--with-file-aio \
5151
--with-http_v2_module \
52+
--with-http_v3_module \
5253
--with-ipv6 \
5354
--with-openssl=/usr/src/libressl-$LIBRESSL_VERSION \
5455
--add-dynamic-module=/usr/src/ngx_headers_more \
5556
--add-dynamic-module=/usr/src/ngx_brotli \
57+
--add-dynamic-module=/usr/src/njs/nginx \
5658
" \
5759
&& addgroup -S nginx \
5860
&& adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
@@ -87,9 +89,10 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
8789
tzdata \
8890
zlib \
8991
zlib-dev \
92+
mercurial \
9093
\
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 \
9396
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz -o libressl-$LIBRESSL_VERSION.tar.gz \
9497
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz.asc -o libressl-$LIBRESSL_VERSION.tar.gz.asc \
9598
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl.asc -o libressl.asc \
@@ -105,18 +108,19 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
105108
gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$GPG_KEYS" && found=yes && break; \
106109
done; \
107110
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 \
109112
&& gpg --import libressl.asc \
110113
&& gpg --batch --verify libressl-$LIBRESSL_VERSION.tar.gz.asc libressl-$LIBRESSL_VERSION.tar.gz \
111114
&& rm -rf "$GNUPGHOME" libressl.asc "libressl-$LIBRESSL_VERSION.tar.gz.asc" \
112115
&& 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 \
115118
&& git clone --depth=1 --recurse-submodules https://github.com/google/ngx_brotli /usr/src/ngx_brotli \
116119
&& 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 \
117121
&& tar -zxC /usr/src -f libressl-$LIBRESSL_VERSION.tar.gz \
118122
&& 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 \
120124
&& patch -p1 < dynamic_tls_records.patch \
121125
&& ./configure $CONFIG --with-debug \
122126
&& make -j$(getconf _NPROCESSORS_ONLN) \

0 commit comments

Comments
 (0)