1
- # syntax=docker/dockerfile:1.5
1
+ # syntax=docker/dockerfile:1.6
2
2
ARG BUILD_OS=debian
3
3
ARG NGINX_PLUS_VERSION=R30
4
4
ARG DOWNLOAD_TAG=edge
@@ -27,8 +27,8 @@ FROM nginx:1.25.2-alpine AS alpine
27
27
28
28
RUN --mount=type=bind,from=alpine-opentracing-lib,target=/tmp/ot/ \
29
29
apk add --no-cache libcap libstdc++ \
30
- # temp fix for CVE-2023-3138
31
- && apk upgrade --no-cache libx11 \
30
+ # temp fix for CVE-2023-38545 and CVE-2023-44487
31
+ && apk upgrade --no-cache curl nghttp2-libs \
32
32
&& cp -av /tmp/ot/usr/local/lib/libopentracing.so* /tmp/ot/usr/local/lib/libjaegertracing*so* /tmp/ot/usr/local/lib/libzipkin*so* /tmp/ot/usr/local/lib/libdd*so* /tmp/ot/usr/local/lib/libyaml*so* /usr/local/lib/ \
33
33
&& cp -av /tmp/ot/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \
34
34
&& ldconfig /usr/local/lib/
@@ -181,6 +181,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
181
181
&& sed -i "0,/centos/s;;${NGINX_PLUS_VERSION}/centos;" /etc/yum.repos.d/nginx-plus.repo \
182
182
&& dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-fips-check \
183
183
# # end of duplicated code
184
+ # # fix for CVEs
185
+ && dnf upgrade -y curl dbus libcap libssh platform-python python3-requests libxml2 systemd sqlite-libs dnf-plugin-subscription-manager dmidecode subscription-manager-rhsm-certificates glibc subscription-manager \
184
186
&& sed -i 's/\( def in_container():\) /\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py \
185
187
&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} || true \
186
188
&& subscription-manager attach \
@@ -197,7 +199,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
197
199
dnf --nodocs install -y app-protect-dos; \
198
200
fi \
199
201
# fix for CVEs
200
- && dnf upgrade -y curl dbus libcap libssh platform-python python3-requests libxml2 systemd sqlite-libs dmidecode dnf-plugin-subscription-manager ncurses \
202
+ && dnf upgrade -y curl ncurses \
201
203
&& rm /etc/yum.repos.d/app-protect*.repo \
202
204
&& subscription-manager unregister \
203
205
&& dnf clean all && rm -rf /var/cache/dnf
0 commit comments