Skip to content

Commit ffcd7e8

Browse files
authored
Merge pull request #379 from mrrobot47/fix/nginx-proxy-nginx-1.31.8
fix(nginx-proxy): update nginx to 1.31.9 for the 1.31.7 and 2026-11-18 security fixes
2 parents e9d44f7 + c286d0a commit ffcd7e8

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎nginx-proxy/Dockerfile‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@ COPY nginx.conf /etc/nginx/nginx.conf
88
COPY version.conf /version.conf
99
COPY default.html /etc/nginx/html/default.html
1010

11+
# nginx-proxy 1.11.6 ships nginx 1.31.3; take the nginx.org 1.31.9 packages with the 1.31.7 and 2026-11-18
12+
# security fixes (same set as the official nginx image) until an upstream release does. Drop this block then.
13+
ENV NGINX_VERSION=1.31.9 \
14+
NJS_VERSION=1.0.2 \
15+
ACME_VERSION=0.4.2
16+
1117
# The upstream image isn't rebuilt between nginx-proxy releases, so apply pending Debian updates here.
1218
RUN apt-get update \
1319
&& apt-get upgrade -y \
14-
&& apt-get install --no-install-recommends apache2-utils -y && rm -rf /var/lib/apt/lists/*
20+
&& apt-get install --no-install-recommends apache2-utils -y \
21+
&& echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/debian/ trixie nginx" > /etc/apt/sources.list.d/nginx.list \
22+
&& apt-get update \
23+
&& apt-get install --no-install-recommends -y \
24+
nginx=${NGINX_VERSION}-${PKG_RELEASE} \
25+
nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE} \
26+
nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} \
27+
nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} \
28+
nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} \
29+
nginx-module-acme=${NGINX_VERSION}+${ACME_VERSION}-${PKG_RELEASE} \
30+
&& rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list
1531

1632
RUN chmod +x /app/docker-entrypoint.sh
1733
RUN rm -rf /var/log/nginx/access.log /var/log/nginx/error.log && touch /var/log/nginx/access.log /var/log/nginx/error.log

0 commit comments

Comments
 (0)