From 5dd85d40cded269acdbf9106ce4ee434bdc4799c Mon Sep 17 00:00:00 2001
From: Luca Bassi <luca@argoware.com>
Date: Thu, 6 Mar 2025 18:25:02 +0100
Subject: [PATCH] Install nginx-module-njs without upgrading nginx

---
 docker/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index bea62b6..7f58072 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -27,7 +27,7 @@ COPY artifacts/*.rpm /pkgs/
 COPY nginx.repo /etc/yum.repos.d/nginx.repo
 RUN rpm -ivh /pkgs/nginx-*.el${EL_VERSION}.httpg.x86_64.rpm && \
     rpm -ivh /pkgs/nginx-module-http-voms-*.el${EL_VERSION}.x86_64.rpm && \
-    dnf install -y nginx-module-njs \
+    dnf install -y nginx-module-njs-$(rpm -q --qf %{VERSION} nginx)* \
 # forward request and error logs to docker log collector
     && ln -sf /dev/stdout /var/log/nginx/access.log \
     && ln -sf /dev/stderr /var/log/nginx/error.log
-- 
GitLab