Skip to content

Commit 4ae06c5

Browse files
authored
Update package for CVE-2022-47629 (#3550)
1 parent c6b15a1 commit 4ae06c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ FROM nginx:1.23.3-alpine AS alpine
2626

2727
RUN --mount=type=bind,from=alpine-opentracing-lib,target=/tmp/ot/ \
2828
apk add --no-cache libcap libstdc++ \
29-
# temp fix for CVE-2022-44617 and CVE-2023-0286
30-
&& apk upgrade --no-cache libxpm libssl3 libcrypto3 \
3129
&& 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/ \
3230
&& cp -av /tmp/ot/usr/lib/nginx/modules/ngx_http_opentracing_module.so /usr/lib/nginx/modules/ \
3331
&& ldconfig /usr/local/lib/
@@ -43,8 +41,6 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
4341
wget -nv -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub \
4442
&& printf "%s\n" "https://pkgs.nginx.com/plus/${NGINX_PLUS_VERSION}/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
4543
&& apk add --no-cache libcap nginx-plus nginx-plus-module-njs nginx-plus-module-opentracing libcurl \
46-
# temp fix for CVE-2023-0286
47-
&& apk upgrade --no-cache libssl3 libcrypto3 \
4844
&& cp -av /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/ \
4945
&& ldconfig /usr/local/lib/
5046

@@ -131,8 +127,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
131127
RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \
132128
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
133129
dnf --nodocs install -y shadow-utils ca-certificates \
134-
# temp fix for CVE-2022-1304 CVE-2016-3709, CVE-2022-42898, CVE-2022-42010, CVE-2022-43680, CVE-2022-3821, CVE-2021-46848 and CVE-2022-35737
135-
&& dnf --nodocs upgrade -y libcom_err libxml2 krb5-libs dbus expat systemd libtasn1 sqlite-libs \
130+
# temp fix for CVE-2022-1304 CVE-2016-3709, CVE-2022-42898, CVE-2022-42010, CVE-2022-43680, CVE-2022-3821, CVE-2021-46848, CVE-2022-35737 and CVE-2022-47629
131+
&& dnf --nodocs upgrade -y libcom_err libxml2 krb5-libs dbus expat systemd libtasn1 sqlite-libs libksba \
136132
&& groupadd --system --gid 101 nginx \
137133
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
138134
&& rpm --import https://cs.nginx.com/static/keys/nginx_signing.key \

0 commit comments

Comments
 (0)