Skip to content

Commit

Permalink
nginx: stable=1.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
denji committed Jun 7, 2024
1 parent c7873ad commit fd45500
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions stable-alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM alpine:latest

ENV NGINX_VERSION=1.24.0
ENV LIBRESSL_VERSION=3.8.2
ENV NGINX_VERSION=1.27.0
ENV LIBRESSL_VERSION=3.8.4

RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
RUN GPG_KEYS=D6786CE303D9A9022998DC6CC8464D549AF75C0A \
&& CONFIG="\
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
Expand Down Expand Up @@ -49,10 +49,12 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
--with-compat \
--with-file-aio \
--with-http_v2_module \
--with-http_v3_module \
--with-ipv6 \
--with-openssl=/usr/src/libressl-$LIBRESSL_VERSION \
--add-dynamic-module=/usr/src/ngx_headers_more \
--add-dynamic-module=/usr/src/ngx_brotli \
--add-dynamic-module=/usr/src/njs/nginx \
" \
&& addgroup -S nginx \
&& adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
Expand Down Expand Up @@ -87,9 +89,10 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
tzdata \
zlib \
zlib-dev \
mercurial \
\
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx-$NGINX_VERSION.tar.gz \
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx-$NGINX_VERSION.tar.gz.asc \
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
&& curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz -o libressl-$LIBRESSL_VERSION.tar.gz \
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$LIBRESSL_VERSION.tar.gz.asc -o libressl-$LIBRESSL_VERSION.tar.gz.asc \
&& curl -fSL https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl.asc -o libressl.asc \
Expand All @@ -105,18 +108,19 @@ RUN GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$GPG_KEYS" && found=yes && break; \
done; \
test -z "$found" && echo >&2 "error: failed to fetch GPG key $GPG_KEYS" && exit 1; \
gpg --batch --verify nginx-$NGINX_VERSION.tar.gz.asc nginx-$NGINX_VERSION.tar.gz \
gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \
&& gpg --import libressl.asc \
&& gpg --batch --verify libressl-$LIBRESSL_VERSION.tar.gz.asc libressl-$LIBRESSL_VERSION.tar.gz \
&& rm -rf "$GNUPGHOME" libressl.asc "libressl-$LIBRESSL_VERSION.tar.gz.asc" \
&& mkdir -p /usr/src \
&& tar -zxC /usr/src -f nginx-$NGINX_VERSION.tar.gz \
&& rm nginx-$NGINX_VERSION.tar.gz \
&& tar -zxC /usr/src -f nginx.tar.gz \
&& rm nginx.tar.gz \
&& git clone --depth=1 --recurse-submodules https://github.com/google/ngx_brotli /usr/src/ngx_brotli \
&& git clone --depth=1 https://github.com/openresty/headers-more-nginx-module /usr/src/ngx_headers_more \
&& hg clone http://hg.nginx.org/njs /usr/src/njs \
&& tar -zxC /usr/src -f libressl-$LIBRESSL_VERSION.tar.gz \
&& cd /usr/src/nginx-$NGINX_VERSION \
&& 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 \
&& 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 \
&& patch -p1 < dynamic_tls_records.patch \
&& ./configure $CONFIG --with-debug \
&& make -j$(getconf _NPROCESSORS_ONLN) \
Expand Down

0 comments on commit fd45500

Please sign in to comment.