clamav official repository

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2025-05-26 01:52:48 +02:00
parent e86bdf2aca
commit cc641f65d0
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81
6 changed files with 10 additions and 14 deletions

View File

@ -1,6 +0,0 @@
FROM debian:sid-slim
RUN apt update && apt install -y cron clamav && apt purge
RUN freshclam
COPY ./clamav /etc/cron.d/clamav
RUN chmod 644 /etc/cron.d/clamav
ENTRYPOINT ["/usr/sbin/cron", "-f"]

View File

@ -4,11 +4,11 @@
## Config
edit compose.yml file volumes
edit compose.yml file volumes under /scandir container folder
## Build
docker compose build
./install.sh
## Start

2
clamav
View File

@ -1,2 +0,0 @@
PATH=/usr/sbin:/usr/bin:/sbin:/bin
5 4 * * * root freshclam && nice -n10 clamscan -rio --move /data/quarantine /data/queue >> /var/log/result.log 2>&1

View File

@ -1,14 +1,13 @@
services:
malware-scan:
build: .
build: ./clamav
image: malware-scan
hostname: malware-scan
container_name: malware-scan
restart: always
volumes:
- /var/lib/docker:/data/queue/docker
- ./quarantine:/data/quarantine
- ./result.log:/var/log/result.log
- /home:/scandir
- ./data:/var/lib/clamav
networks:
mynet:

5
install.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
git clone --depth 1 https://github.com/Cisco-Talos/clamav-docker
git clone --depth 1 https://github.com/Cisco-Talos/clamav
cp -r ./clamav-docker/clamav/1.4/debian/* clamav/
docker compose build --no-cache

View File