Slim Docker Image containing libclamav and friends.
This is a multi-stage docker build that builds ClamAV from source, and installs it into a fresh image.
This image is intended to be used by components that integrate with libclamav (or want clamscan) and as such
- Does not contain any virus definitions (fetch with freshclam, or download from https://www.clamav.net/downloads
- Does not have any daemons setup (freshclamd, clamdscan, etc)
The latest Debian stable "slim" image is used as the base, as alternatives such as Alpine are based on musl-libc which is not well supported by libclamav, or other frameworks such as Rust Lang.
Build with an available source version of ClamAV:
docker build --build-arg=WANT_CLAMAV_VERSION="0.100.2" .
Or run
docker run --rm -it icebergdefender/clamav-slim clamscan --version
CI/CD charitably provided by Buildkite.com