1
1
FROM alpine:latest
2
2
3
- ENV NGINX_VERSION=1.24.0
3
+ ENV NGINX_VERSION=1.26.1
4
4
5
- RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
5
+ RUN GPG_KEYS=D6786CE303D9A9022998DC6CC8464D549AF75C0A \
6
6
&& CONFIG="\
7
7
--prefix=/etc/nginx \
8
8
--sbin-path=/usr/sbin/nginx \
@@ -48,8 +48,7 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
48
48
--with-compat \
49
49
--with-file-aio \
50
50
--with-http_v2_module \
51
- --with-cc-opt=-I/usr/src/boringssl/.openssl/include \
52
- --with-ld-opt=-L/usr/src/boringssl/.openssl/lib \
51
+ --with-http_v3_module \
53
52
--add-dynamic-module=/usr/src/ngx_headers_more \
54
53
--add-dynamic-module=/usr/src/ngx_brotli \
55
54
--add-dynamic-module=/usr/src/njs/nginx \
@@ -118,7 +117,7 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
118
117
&& make -C/usr/src/boringssl/build -j$(getconf _NPROCESSORS_ONLN) \
119
118
) \
120
119
&& cd /usr/src/nginx-$NGINX_VERSION \
121
- && 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 \
120
+ && 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 \
122
121
&& patch -p1 < dynamic_tls_records.patch \
123
122
&& ./configure $CONFIG --with-debug --with-cc-opt="-I/usr/src/boringssl/include" --with-ld-opt="-L/usr/src/boringssl/build/ssl -L/usr/src/boringssl/build/crypto" \
124
123
&& make -j$(getconf _NPROCESSORS_ONLN) \
@@ -146,7 +145,7 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
146
145
&& strip /usr/sbin/nginx* \
147
146
&& strip /usr/lib/nginx/modules/*.so \
148
147
&& rm -rf /usr/src/nginx-$NGINX_VERSION \
149
- && rm -rf /usr/src/boringssl /usr/src/ngx_* \
148
+ && rm -rf /usr/src/boringssl /usr/src/ngx_* /usr/src/njs \
150
149
\
151
150
# Bring in gettext so we can get `envsubst`, then throw
152
151
# the rest away. To do this, we need to install `gettext`
@@ -182,8 +181,8 @@ LABEL description="NGINX Docker built top of rolling release BoringSSL" \
182
181
nginx="nginx $NGINX_VERSION" \
183
182
arch="$APK_ARCH"
184
183
185
- EXPOSE 80 443
184
+ EXPOSE 80 443 443/udp
186
185
187
186
STOPSIGNAL SIGTERM
188
187
189
- CMD ["nginx" , "-g" , "daemon off;" ]
188
+ CMD ["nginx" , "-g" , "daemon off;" ]
0 commit comments