Skip to content

Commit 4c9f17d

Browse files
committed
Update packages for CVE-2022-22822 (#2433)
1 parent 68fcfd3 commit 4c9f17d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ ARG DEBIAN_VERSION=bullseye-slim
99
FROM nginx:1.21.5 AS debian
1010

1111
RUN apt-get update \
12-
&& apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin libgmp10 \
13-
# temporary fix for CVE-2021-43618
14-
&& apt-get install --no-install-recommends --no-install-suggests -y libgmp10 \
12+
&& apt-get install --no-install-recommends --no-install-suggests -y libcap2-bin \
13+
# temporary fix for CVE-2022-22822
14+
&& apt-get install -y libexpat1 \
1515
&& rm -rf /var/lib/apt/lists/* \
1616
&& echo $NGINX_VERSION > nginx_version
1717

@@ -49,8 +49,6 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
4949
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
5050
apt-get update \
5151
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates gnupg curl apt-transport-https libcap2-bin \
52-
# temporary fix for CVE-2021-43618
53-
&& apt-get install --no-install-recommends --no-install-suggests -y libgmp10 \
5452
&& curl -fsSL https://cs.nginx.com/static/keys/nginx_signing.key | gpg --dearmor > /etc/apt/trusted.gpg.d/nginx_signing.gpg \
5553
&& curl -fsSL -o /etc/apt/apt.conf.d/90pkgs-nginx https://cs.nginx.com/static/files/90pkgs-nginx \
5654
&& DEBIAN_VERSION=$(awk -F '=' '/^VERSION_CODENAME=/ {print $2}' /etc/os-release) \

0 commit comments

Comments
 (0)