mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
misc: remaining v13 todos (#3370)
This commit is contained in:
parent
68265b744d
commit
6a4fac61f8
4 changed files with 32 additions and 18 deletions
|
@ -28,7 +28,7 @@ EOF
|
|||
COPY target/scripts/build/* /build/
|
||||
COPY target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh
|
||||
|
||||
RUN /bin/bash /build/packages.sh
|
||||
RUN /bin/bash /build/packages.sh && rm -r /build
|
||||
|
||||
# -----------------------------------------------
|
||||
# --- ClamAV & FeshClam -------------------------
|
||||
|
@ -41,6 +41,9 @@ RUN /bin/bash /build/packages.sh
|
|||
COPY --link --chown=200 --from=docker.io/clamav/clamav:latest /var/lib/clamav /var/lib/clamav
|
||||
|
||||
RUN <<EOF
|
||||
# `COPY --link --chown=200` has a bug that affects image pulls. Restore ownership of parent dirs:
|
||||
# https://github.com/moby/buildkit/issues/3912
|
||||
chown root:root /var /var/lib
|
||||
echo '0 */6 * * * clamav /usr/bin/freshclam --quiet' >/etc/cron.d/clamav-freshclam
|
||||
chmod 644 /etc/clamav/freshclam.conf
|
||||
sedfile -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue