Skip to content

Commit

Permalink
Make clamav run as root (debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Nov 20, 2024
1 parent f1d7f30 commit 5699213
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -67,6 +68,6 @@ ENV PCRE_MATCHLIMIT=100000
ENV PCRE_RECMATCHLIMIT=2000
ENV SIGNATURE_CHECKS=2

USER clamav
# USER clamav

ENTRYPOINT [ "entrypoint.sh" ]

0 comments on commit 5699213

Please sign in to comment.