chore(Dockerfile): COPY ClamAV database from debian images (#4160)

Changes ClamAV image source from DockerHub clamav/clamav (Alpine) to clamav/clamav-debian. Only the Debian variant offers multi-platform images.

This isn't too important since we are only interested in taking a copy of the database from the image. It should however resolve a CI warning.
This commit is contained in:
Brennan Kinney 2024-08-17 22:55:31 +12:00 committed by GitHub
parent b2978fd760
commit 310786453b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
# which would require an extra memory of 500MB+ during an image build. # which would require an extra memory of 500MB+ during an image build.
# When using `COPY --link`, the `--chown` option is only compatible with numeric ID values. # When using `COPY --link`, the `--chown` option is only compatible with numeric ID values.
# hadolint ignore=DL3021 # hadolint ignore=DL3021
COPY --link --chown=200 --from=docker.io/clamav/clamav:latest /var/lib/clamav /var/lib/clamav COPY --link --chown=200 --from=docker.io/clamav/clamav-debian:latest /var/lib/clamav /var/lib/clamav
RUN <<EOF RUN <<EOF
# `COPY --link --chown=200` has a bug when built by the buildx docker-container driver. # `COPY --link --chown=200` has a bug when built by the buildx docker-container driver.