mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-10 17:03:44 +08:00
another attempt
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
efca35b0e9
commit
f90971ef9d
1 changed files with 5 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue