From 5699213fdc88d0e6216e47a67cfbc15509ff3c98 Mon Sep 17 00:00:00 2001 From: Alex Steel <130377221+asteel-gsa@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:05:18 -0500 Subject: [PATCH] Make clamav run as root (debug) --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e7ebeae..a6fdaed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,10 +45,11 @@ RUN freshclam --quiet --no-dns COPY entrypoint.sh /usr/bin/ -RUN mkdir /clamav \ - && chown -R clamav.clamav /clamav \ - && chown -R clamav.clamav /var/log/clamav \ - && chown -R clamav.clamav /run/clamav +RUN mkdir /clamav +# RUN mkdir /clamav \ +# && chown -R clamav.clamav /clamav \ +# && chown -R clamav.clamav /var/log/clamav \ +# && chown -R clamav.clamav /run/clamav ENV PORT=9000 ENV SSL_PORT=9443 @@ -67,6 +68,6 @@ ENV PCRE_MATCHLIMIT=100000 ENV PCRE_RECMATCHLIMIT=2000 ENV SIGNATURE_CHECKS=2 -USER clamav +# USER clamav ENTRYPOINT [ "entrypoint.sh" ]