jloehel / docker-clamav

Docker image for clamav + clamav-unofficial-sigs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image for ClamAV and unofficial signatures from https://eXtremeSHOK.com

This Dockerfile adds ClamAV and the unofficial Signatures to a Docker Image. Clamd is listening on 0.0.0.0, TCP/3310.

Supported tags and respective Dockerfile links

  • devel
  • 0.105.1-r0-alpine-3.17.0-r0, latest
  • 0.104.1-r0-alpine-3.15.0-r1
  • 0.104.1-r0-alpine-3.15.0-r0
  • 0.102.4-r1-alpine-3.12.0-r0
  • 0.102.4-r0-alpine-3.12.0-r0
  • 0.102.3-r0-alpine-3.12.0-r0
  • 0.102.1-r0-alpine-3.11.6-r1
  • 0.102.1-alpine-3.11-r2
  • 0.102.1-alpine-3.11-r1,

Devel Image

export CFLAGS="-fmessage-length=0 -grecord-gcc-switches -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIE -fno-strict-aliasing"
export CXXFLAGS="-fmessage-length=0 -grecord-gcc-switches -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIE -fno-strict-aliasing -std=gnu++98"
export LDFLAGS="-pie"
export LIBS="-lfts"
./configure \
    --prefix=/usr \
    --libdir=/usr/lib \
    --sysconfdir=/etc/clamav \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --without-iconv \
    --disable-llvm \
    --with-user=clamav \
    --with-group=clamav \
    --with-dbdir=/data \
    --enable-clamdtop \
    --enable-bigstack \
    --with-pcre \
    --enable-milter \
    --enable-clamonacc \
    --enable-check

Docker-compose example

version: '3.4'

services:
  clamav:
    image: jloehel/clamav:latest
    hostname: clamav
    container_name: clamav
    restart: unless-stopped
    volumes:
      - clamav_data:/data:Z
    networks:
      internal-network:
        aliases:
        - clamav
    ports:
      - "127.0.0.1:3310:3310"
    healthcheck:
      test: ["CMD-SHELL", "echo PING | nc 127.0.0.1 3310 | grep PONG"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  clamav_data:

networks:
  internal-network:

About

Docker image for clamav + clamav-unofficial-sigs

License:MIT License


Languages

Language:Dockerfile 89.5%Language:Shell 10.5%