nginx/nginx (sha256:7f445d189de25a0d7ac89195470ef1c75065c3903e482a2a044e7aa96ada2a93)

Published 2026-10-26 12:40:10 +01:00 by romain

Installation

docker pull forge.rdr-it.com/registry/nginx/nginx@sha256:7f445d189de25a0d7ac89195470ef1c75065c3903e482a2a044e7aa96ada2a93
sha256:7f445d189de25a0d7ac89195470ef1c75065c3903e482a2a044e7aa96ada2a93

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
ENV NGINX_VERSION=1.30.6
ENV NJS_VERSION=1.0.2
ENV NJS_RELEASE=1~trixie
ENV ACME_VERSION=0.4.1
ENV PKG_RELEASE=1~trixie
ENV DYNPKG_RELEASE=1~trixie
RUN /bin/sh -c set -x && groupadd --system --gid 101 nginx && useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates && NGINX_GPGKEYS="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 8540A6F18833A80E9C1653A42FD21310B49F6B46 9E9BE90EACBCDE69FE9B204CBCDCD8A38D88A2B3"; NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg; export GNUPGHOME="$(mktemp -d)"; found=''; for NGINX_GPGKEY in $NGINX_GPGKEYS; do for server in hkp://keyserver.ubuntu.com:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; gpg1 --batch --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; done; gpg1 --batch --export $NGINX_GPGKEYS > "$NGINX_GPGKEY_PATH" ; rm -rf "$GNUPGHOME"; apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* && dpkgArch="$(dpkg --print-architecture)" && nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} nginx-module-acme=${NGINX_VERSION}+${ACME_VERSION}-${PKG_RELEASE} " && case "$dpkgArch" in amd64|arm64) echo "deb [signed-by=$NGINX_GPGKEY_PATH] https://nginx.org/packages/debian/ trixie nginx" >> /etc/apt/sources.list.d/nginx.list && apt-get update ;; *) tempDir="$(mktemp -d)" && chmod 777 "$tempDir" && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y cargo curl devscripts equivs git libxml2-utils lsb-release xsltproc && ( cd "$tempDir" && export CARGO_HOME="$tempDir/.cargo" && REVISION="${NGINX_VERSION}-${PKG_RELEASE}" && REVISION=${REVISION%~*} && curl -f -L -O https://github.com/nginx/pkg-oss/archive/${REVISION}.tar.gz && PKGOSSCHECKSUM="c16280934a44f7358992d39bb1d876a58e978c58371b96fd212de3f58c7ba40c31a683c54ee46c85d0844ca18fd7addeafbb29a8e06a9d1e164a8628a4739eee *${REVISION}.tar.gz" && if [ "$(openssl sha512 -r ${REVISION}.tar.gz)" = "$PKGOSSCHECKSUM" ]; then echo "pkg-oss tarball checksum verification succeeded!"; else echo "pkg-oss tarball checksum verification failed!"; exit 1; fi && tar xzvf ${REVISION}.tar.gz && cd pkg-oss-${REVISION} && cd debian && for target in base module-geoip module-image-filter module-njs module-xslt module-acme; do make rules-$target; mk-build-deps --install --tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes" debuild-$target/nginx-$NGINX_VERSION/debian/control; done && make base module-geoip module-image-filter module-njs module-xslt module-acme ) && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && ls -lAFh "$tempDir" && ( cd "$tempDir" && dpkg-scanpackages . > Packages ) && grep '^Package: ' "$tempDir/Packages" && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list && apt-get -o Acquire::GzipIndexes=false update ;; esac && apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base curl && apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list && if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log && mkdir /docker-entrypoint.d # buildkit
COPY docker-entrypoint.sh / # buildkit
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE map[80/tcp:{}]
STOPSIGNAL SIGQUIT
CMD ["nginx" "-g" "daemon off;"]
ARG NGINX_VERSION=1.30.6
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c apt-get update && apt-get install -y libmaxminddb0 libpcre2-8-0 libxml2 git curl ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
COPY /usr/local/lib/libcoraza.so /usr/local/lib/ # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c ldconfig # buildkit
COPY /nginx-1.30.6/objs/ngx_http_headers_more_filter_module.so /usr/lib/nginx/modules/ # buildkit
COPY /nginx-1.30.6/objs/ngx_http_subs_filter_module.so /usr/lib/nginx/modules/ # buildkit
COPY /nginx-1.30.6/objs/ngx_http_geoip2_module.so /usr/lib/nginx/modules/ # buildkit
COPY /nginx-1.30.6/objs/ngx_stream_geoip2_module.so /usr/lib/nginx/modules/ # buildkit
COPY /nginx-1.30.6/objs/ngx_http_vhost_traffic_status_module.so /usr/lib/nginx/modules/ # buildkit
COPY /nginx-1.30.6/objs/ngx_http_coraza_module.so /usr/lib/nginx/modules/ # buildkit
COPY nginx.conf /etc/nginx/nginx.conf # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c mkdir -p /etc/nginx/sites-available && mkdir -p /etc/nginx/sites-enabled && mkdir -p /etc/nginx/sites && mkdir -p /etc/nginx/streams && mkdir -p /etc/nginx/conf.d && mkdir -p /etc/nginx/modules-enabled && rm /etc/nginx/modules # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c mkdir -p /etc/nginx/coraza && curl -sSL https://raw.githubusercontent.com/corazawaf/coraza/main/coraza.conf-recommended -o /etc/nginx/coraza/coraza.conf && git clone --depth 1 https://github.com/coreruleset/coreruleset.git /tmp/owasp-crs && cp -r /tmp/owasp-crs/rules /etc/nginx/coraza/rules && cp /tmp/owasp-crs/crs-setup.conf.example /etc/nginx/coraza/crs-setup.conf && rm -rf /tmp/owasp-crs # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c echo 'Include /etc/nginx/coraza/coraza.conf' > /etc/nginx/coraza/coraza-main.conf && echo 'Include /etc/nginx/coraza/crs-setup.conf' >> /etc/nginx/coraza/coraza-main.conf && for f in /etc/nginx/coraza/rules/*.conf; do echo "Include $f" >> /etc/nginx/coraza/coraza-main.conf; done # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c mkdir -p /usr/share/nginx/modules-available/ && echo "load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;" > /usr/share/nginx/modules-available/mod-http-headers-more-filter.conf && echo "load_module /usr/lib/nginx/modules/ngx_http_subs_filter_module.so;" > /usr/share/nginx/modules-available/mod-http-subs-filter.conf && echo "load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so;" > /usr/share/nginx/modules-available/mod-http-geoip2.conf && echo "load_module /usr/lib/nginx/modules/ngx_stream_geoip2_module.so;" > /usr/share/nginx/modules-available/mod-stream-geoip2.conf && echo "load_module /usr/lib/nginx/modules/ngx_http_vhost_traffic_status_module.so;" > /usr/share/nginx/modules-available/mod-nginx-vts.conf && echo "load_module /usr/lib/nginx/modules/ngx_http_coraza_module.so;" > /usr/share/nginx/modules-available/mod-http-coraza.conf # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c mkdir -p /etc/nginx/modules-enabled/ && ln -s /usr/share/nginx/modules-available/mod-http-headers-more-filter.conf /etc/nginx/modules-enabled/50-mod-http-headers-more-filter.conf && ln -s /usr/share/nginx/modules-available/mod-http-subs-filter.conf /etc/nginx/modules-enabled/50-mod-http-subs-filter.conf && ln -s /usr/share/nginx/modules-available/mod-http-geoip2.conf /etc/nginx/modules-enabled/70-mod-http-geoip2.conf && ln -s /usr/share/nginx/modules-available/mod-stream-geoip2.conf /etc/nginx/modules-enabled/70-mod-stream-geoip2.conf && ln -s /usr/share/nginx/modules-available/mod-nginx-vts.conf /etc/nginx/modules-enabled/mod-nginx-vts.conf && ln -s /usr/share/nginx/modules-available/mod-http-coraza.conf /etc/nginx/modules-enabled/50-mod-http-coraza.conf # buildkit
COPY 05-generate-config.sh /docker-entrypoint.d # buildkit
RUN |1 NGINX_VERSION=1.30.6 /bin/sh -c chmod +x /docker-entrypoint.d/05-generate-config.sh # buildkit

Labels

Key Value
maintainer NGINX Docker Maintainers <docker-maint@nginx.com>
org.opencontainers.image.authors Romain Drouche <contact@rdr-it.com>
org.opencontainers.image.revision 63be11a21a1def35e63455f96b3e73cadf45da84
org.opencontainers.image.source https://forge.rdr-it.com/Dockerfiles/nginx-reverse-proxy
org.opencontainers.image.version 1.30.6 coraza
Details
Container
2026-10-26 12:40:10 +01:00
0
OCI / Docker
linux/amd64
Romain Drouche <contact@rdr-it.com>
103 MiB
Versions (10) View all
1.30.8-waf 2026-11-26
1.30.8-coraza 2026-11-26
1.30.8 2026-11-26
1.30.7-waf 2026-11-19
1.30.7-coraza 2026-11-19