/clamav-slim

Slim Docker Image containing libclamav and friends

Primary LanguageDockerfileMIT LicenseMIT

clamav-slim

Docker Image Status

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

  1. Does not contain any virus definitions (fetch with freshclam, or download from https://www.clamav.net/downloads
  2. 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.

Example

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

Thanks

CI/CD charitably provided by Buildkite.com