From f90971ef9d1a0549ce3b56ab33d7788481513ed4 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 11 Jul 2024 17:24:59 +0200 Subject: [PATCH] another attempt Signed-off-by: Simon L. --- Containers/clamav/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index 721aea2b..e81d4260 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -12,7 +12,10 @@ RUN set -ex; \ chown -R clamav:clamav /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock; \ chmod 777 -R /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock /tmp; \ sed -i "/^set -eu/r /start.script" /init-unprivileged; \ - rm /start.script + rm /start.script; \ + grep -q 'clamd --foreground &' /init-unprivileged; \ + sed -i "s|clamd --foreground \&|clamd --foreground \& --config-file /tmp/clamd.conf|" /init-unprivileged; \ + cat /init-unprivileged VOLUME /var/lib/clamav @@ -20,4 +23,4 @@ USER clamav LABEL com.centurylinklabs.watchtower.enable="false" -ENTRYPOINT ["/init-unprivileged", "--config-file", "/tmp/clamd.conf"] +ENTRYPOINT ["/init-unprivileged"]