Skip to content

Commit 17f0950

Browse files
authored
Fix CVEs in UBI NAP images (#4257)
1 parent bded301 commit 17f0950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
180180
&& curl -fsSL "https://cs.nginx.com/static/files/nginx-plus-$(grep -E -o '[0-9]+\.[0-9]+' /etc/redhat-release | cut -d"." -f1).repo" | tr 0 1 > /etc/yum.repos.d/nginx-plus.repo \
181181
&& sed -i "0,/centos/s;;${NGINX_PLUS_VERSION}/centos;" /etc/yum.repos.d/nginx-plus.repo \
182182
&& dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-fips-check \
183-
# temp fix for CVE-2023-24329
184-
&& dnf upgrade -y platform-python \
185183
## end of duplicated code
186184
&& sed -i 's/\(def in_container():\)/\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py \
187185
&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} || true \
@@ -198,6 +196,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
198196
sed -i "0,/centos/s;;${NGINX_PLUS_VERSION}/centos;" /etc/yum.repos.d/app-protect-dos-8.repo; \
199197
dnf --nodocs install -y app-protect-dos; \
200198
fi \
199+
# fix for CVEs
200+
&& dnf upgrade -y curl dbus libcap libssh platform-python python3-requests libxml2 systemd sqlite-libs \
201201
&& rm /etc/yum.repos.d/app-protect*.repo \
202202
&& subscription-manager unregister \
203203
&& dnf clean all && rm -rf /var/cache/dnf

0 commit comments

Comments
 (0)