From d385d43af0d24b610e31855d08786892d3e0a04c Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 16 Mar 2022 13:24:45 +0100 Subject: [PATCH] fix clamav build Signed-off-by: szaimen --- Containers/clamav/Dockerfile | 8 ++------ Containers/clamav/clamav.conf | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 Containers/clamav/clamav.conf diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index 80dac7d5..d96bc3f2 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -1,9 +1,5 @@ # Probably from this file: https://github.com/Cisco-Talos/clamav/blob/main/Dockerfile FROM clamav/clamav:0.104.2-2 -RUN echo -e '\n\ -MaxDirectoryRecursion 30\n\ -MaxFileSize 100M\n\ -PCREMaxFileSize 100M\n\ -StreamMaxLength 100M\ -' >> /clamav/etc/clamav/clamd.conf +COPY clamav.conf /tmp/ +RUN cat /tmp/clamav.conf >> /etc/clamav/clamd.conf diff --git a/Containers/clamav/clamav.conf b/Containers/clamav/clamav.conf new file mode 100644 index 00000000..1de35086 --- /dev/null +++ b/Containers/clamav/clamav.conf @@ -0,0 +1,4 @@ +MaxDirectoryRecursion 30 +MaxFileSize 100M +PCREMaxFileSize 100M +StreamMaxLength 100M