1
1
# syntax=docker/dockerfile:1.16
2
2
ARG BUILD_OS=debian
3
- ARG NGINX_OSS_VERSION=1.29
4
- ARG NGINX_PLUS_VERSION=R34
3
+ ARG NGINX_OSS_VERSION=1.29.1
4
+ ARG NGINX_PLUS_VERSION=R35
5
5
ARG DOWNLOAD_TAG=edge
6
6
ARG DEBIAN_FRONTEND=noninteractive
7
7
ARG PREBUILT_BASE_IMG=nginx/nginx-ingress:${DOWNLOAD_TAG}
@@ -82,7 +82,7 @@ USER 101
82
82
83
83
84
84
# ############################################ Base image for Alpine #############################################
85
- FROM nginx:1.29.0-alpine @sha256:b2e814d28359e77bd0aa5fed1939620075e4ffa0eb20423cc557b375bd5c14ad AS alpine
85
+ FROM nginx:1.29.1-alpine3.22 @sha256:599f75c32c9bfe5859e022f75d26e4d939f5b1097c7abc1add287d48ec100f1e AS alpine
86
86
ARG PACKAGE_REPO
87
87
ARG NGINX_OSS_VERSION
88
88
@@ -100,7 +100,7 @@ RUN --mount=type=bind,from=nginx-files,src=nginx_signing.rsa.pub,target=/etc/apk
100
100
101
101
102
102
# ############################################ Base image for Debian #############################################
103
- FROM nginx:1.29.0 @sha256:dc53c8f25a10f9109190ed5b59bda2d707a3bde0e45857ce9e1efaa32ff9cbc1 AS debian
103
+ FROM nginx:1.29.1 @sha256:33e0bbc7ca9ecf108140af6288c7c9d1ecc77548cbfd3952fd8466a75edefe57 AS debian
104
104
105
105
RUN --mount=type=bind,from=nginx-files,src=nginx_signing.key,target=/tmp/nginx_signing.key \
106
106
--mount=type=bind,from=nginx-files,src=90pkgs-nginx,target=/etc/apt/apt.conf.d/90pkgs-nginx \
@@ -219,7 +219,7 @@ RUN --mount=type=bind,from=alpine-fips-3.19,target=/tmp/fips/ \
219
219
&& printf "%s\n " "https://pkgs.nginx.com/app-protect-security-updates/alpine/v$(grep -E -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
220
220
&& printf "%s\n " "https://${PACKAGE_REPO}/nginx-agent/alpine/v$(grep -E -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
221
221
&& apk add --no-cache libcap-utils libcurl nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check \
222
- && apk add --no-cache nginx-agent~3. 2 \
222
+ && apk add --no-cache nginx-agent~2 \
223
223
&& mkdir -p /usr/ssl \
224
224
&& cp -av /tmp/fips/usr/lib/ossl-modules/fips.so /usr/lib/ossl-modules/fips.so \
225
225
&& cp -av /tmp/fips/usr/ssl/fipsmodule.cnf /usr/ssl/fipsmodule.cnf \
@@ -250,14 +250,14 @@ RUN --mount=type=bind,from=alpine-fips-3.19,target=/tmp/fips/ \
250
250
&& printf "%s\n " "https://${PACKAGE_REPO}/app-protect-x-plus/alpine/v$(grep -E -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
251
251
&& printf "%s\n " "https://${PACKAGE_REPO}/nginx-agent/alpine/v$(grep -E -o '^[0-9]+\. [0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
252
252
&& apk add --no-cache libcap-utils libcurl nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check \
253
- && apk add --no-cache nginx-agent~3. 2 \
253
+ && apk add --no-cache nginx-agent~2 \
254
254
&& mkdir -p /usr/ssl \
255
255
&& cp -av /tmp/fips/usr/lib/ossl-modules/fips.so /usr/lib/ossl-modules/fips.so \
256
256
&& cp -av /tmp/fips/usr/ssl/fipsmodule.cnf /usr/ssl/fipsmodule.cnf \
257
257
&& cp -av /tmp/fips/etc/ssl/openssl.cnf /etc/ssl/openssl.cnf \
258
258
&& mkdir -p /etc/nginx/reporting/ \
259
259
&& cp -av /tmp/nginx/reporting/tracking.info /etc/nginx/reporting/tracking.info \
260
- && apk add --no-cache app-protect-module-plus~=34 .5.442 \
260
+ && apk add --no-cache app-protect-module-plus~=35 .5.498 \
261
261
&& sed -i -e '/nginx.com/d' /etc/apk/repositories \
262
262
&& nap-waf.sh \
263
263
agent.sh
@@ -359,7 +359,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
359
359
--mount=type=bind,from=nginx-files,src=nap-waf.sh,target=/usr/local/bin/nap-waf.sh \
360
360
--mount=type=bind,from=nginx-files,src=debian-agent-12.sources,target=/etc/apt/sources.list.d/nginx-agent.sources \
361
361
apt-get update \
362
- && apt-get install --no-install-recommends --no-install-suggests -y nginx-agent=2.* app-protect-module-plus=34 +5.442 * nginx-plus-module-appprotect=34+5.442* app-protect-plugin=6.16 .0* \
362
+ && apt-get install --no-install-recommends --no-install-suggests -y nginx-agent=2.* app-protect-module-plus=35 +5.498 * nginx-plus-module-appprotect=34+5.442* app-protect-plugin=6.20 .0* \
363
363
&& nap-waf.sh \
364
364
&& agent.sh
365
365
@@ -461,7 +461,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
461
461
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
462
462
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
463
463
&& microdnf --nodocs install -y ca-certificates shadow-utils subscription-manager \
464
- && microdnf --nodocs install -y nginx-plus-module-otel nginx-agent-2.* app-protect-module-plus-34 +5.442 * \
464
+ && microdnf --nodocs install -y nginx-plus-module-otel nginx-agent-2.* app-protect-module-plus-35 +5.498 * \
465
465
&& nap-waf.sh \
466
466
&& ubi-clean.sh \
467
467
&& agent.sh
@@ -531,7 +531,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
531
531
&& rpm --import /tmp/nginx_signing.key \
532
532
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
533
533
&& dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-2.* \
534
- && dnf --nodocs install -y app-protect-module-plus-34 +5.442 * \
534
+ && dnf --nodocs install -y app-protect-module-plus-35 +5.498 * \
535
535
&& nap-waf.sh \
536
536
&& agent.sh \
537
537
&& dnf clean all
0 commit comments