initial commit

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2025-05-21 20:05:40 +02:00
commit d335367607
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81
4 changed files with 42 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
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"]

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# docker-malware-scan
### Simple docker with `clamav` antivirus daily scanner
## Config
edit compose.yml file volumes
## Build
docker compose build
## Start
docker compose up -d
## License
MIT

2
clamav Normal file
View File

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

15
compose.yml Normal file
View File

@ -0,0 +1,15 @@
services:
malware-scan:
build: .
image: malware-scan
hostname: malware-scan
container_name: malware-scan
restart: always
volumes:
- /var/lib/docker:/data/queue/docker
- ./quarantine:/data/quarantine
networks:
mynet:
networks:
mynet: