Skip to content

Commit

Permalink
Bump NGINX Plus to R29 (#3833) (#3851)
Browse files Browse the repository at this point in the history
(cherry picked from commit 186eec3)
  • Loading branch information
lucacome authored May 4, 2023
1 parent f9ee37f commit 098c8bf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.5
ARG BUILD_OS=debian
ARG NGINX_PLUS_VERSION=R28
ARG NGINX_PLUS_VERSION=R29
ARG DOWNLOAD_TAG=edge


Expand Down Expand Up @@ -93,16 +93,14 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
&& printf "%s\n" "deb https://pkgs.nginx.com/app-protect/${NGINX_PLUS_VERSION}/debian ${DEBIAN_VERSION} nginx-plus" \
"deb https://pkgs.nginx.com/app-protect-security-updates/debian ${DEBIAN_VERSION} nginx-plus" > /etc/apt/sources.list.d/nginx-app-protect.list \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y app-protect app-protect-attack-signatures app-protect-threat-campaigns \
# NAP DoS depends on curl so we can't remove it a the end
&& apt-get purge --auto-remove -y curl; \
&& apt-get install --no-install-recommends --no-install-suggests -y app-protect app-protect-attack-signatures app-protect-threat-campaigns; \
fi \
&& if [ -z "${NAP_MODULES##*dos*}" ]; then \
printf "%s\n" "deb https://pkgs.nginx.com/app-protect-dos/${NGINX_PLUS_VERSION}/debian ${DEBIAN_VERSION} nginx-plus" > /etc/apt/sources.list.d/nginx-app-protect-dos.list \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y app-protect-dos; \
fi \
&& apt-get purge --auto-remove -y apt-transport-https gnupg \
&& apt-get purge --auto-remove -y apt-transport-https gnupg curl \
&& rm -rf /var/lib/apt/lists/* \
&& rm /etc/apt/sources.list.d/nginx-app-protect*.list

Expand Down

0 comments on commit 098c8bf

Please sign in to comment.