From 36a926653587339a5af712bc5f42337fd46fb31f Mon Sep 17 00:00:00 2001 From: David Mays Date: Mon, 17 Jun 2024 17:41:47 +0100 Subject: [PATCH] Attempt permission fix for Clam AV Logs Directory --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2b5c4280..314ae1a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -127,7 +127,8 @@ RUN apt update && apt-get install -y libbz2-1.0 \ tzdata \ netcat-traditional && \ mkdir -p /var/run/clamav /var/lib/clamav /usr/local/share/clamav && \ - chown app:app /var/run/clamav /var/lib/clamav /usr/local/share/clamav + install -d -m 755 -g "app" -o "app" "/var/log/clamav" && \ + chown -R app:app /var/run/clamav /var/lib/clamav /usr/local/share/clamav WORKDIR $APP_HOME