chore: Revise Dockerfile comment on COPY bug (#3378)

This commit is contained in:
Brennan Kinney 2023-05-31 01:22:42 +12:00 committed by GitHub
parent 6a4fac61f8
commit 86e18d04dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,8 +41,8 @@ RUN /bin/bash /build/packages.sh && rm -r /build
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
# `COPY --link --chown=200` has a bug when built by the buildx docker-container driver.
# Restore ownership of parent dirs (Bug: 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