clamav official repository
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
e86bdf2aca
commit
cc641f65d0
@ -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"]
|
@ -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
2
clamav
@ -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
|
@ -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
5
install.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user