From bc5f3ee88e4021b8dba3e9bb3b6559ab89197e06 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Tue, 5 Oct 2021 15:01:43 +0200 Subject: [PATCH] fix CVEs and add init to Debian test image --- Dockerfile | 4 ++-- tests/Dockerfile-debian | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59d6872..78d0d55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ RUN chmod +x /tmp/docker.sh && \ /tmp/docker.sh && \ rm -f /tmp/docker.sh -# Fix CVE-2021-22901, CVE-2021-22898, CVE-2021-22897, CVE-2021-33560 and CVE-2021-36159 -RUN apk add "curl>=7.77.0-r0" "libgcrypt>=1.8.8-r0" "apk-tools>=2.12.6-r0" +# Fix CVE-2021-22945, CVE-2021-22946, CVE-2021-22947 and CVE-2021-40528 +RUN apk add "curl>=7.79.0-r0" "libgcrypt>=1.8.8-r1" VOLUME /www /http-confs /server-confs /modsec-confs /modsec-crs-confs /cache /pre-server-confs /acme-challenge /plugins diff --git a/tests/Dockerfile-debian b/tests/Dockerfile-debian index 5df1d8d..384b245 100644 --- a/tests/Dockerfile-debian +++ b/tests/Dockerfile-debian @@ -1,6 +1,6 @@ FROM debian:bullseye-slim -RUN apt update && apt install -y systemd +RUN apt update && apt install -y systemd init RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ rm -f /lib/systemd/system/multi-user.target.wants/*;\