File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,26 @@ COPY nginx.conf /etc/nginx/nginx.conf
88COPY version.conf /version.conf
99COPY 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.
1218RUN 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
1632RUN chmod +x /app/docker-entrypoint.sh
1733RUN rm -rf /var/log/nginx/access.log /var/log/nginx/error.log && touch /var/log/nginx/access.log /var/log/nginx/error.log
You can’t perform that action at this time.
0 commit comments