mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-10 04:19:24 +02:00
add clamav
This commit is contained in:
parent
31eb2aded9
commit
d2a63f756d
@ -30,6 +30,7 @@ dockerfiles
|
|||||||
- [x] cadvisor
|
- [x] cadvisor
|
||||||
- [x] casperjs :+1:
|
- [x] casperjs :+1:
|
||||||
- [x] chinadns
|
- [x] chinadns
|
||||||
|
- [x] clamav
|
||||||
- [x] collectd
|
- [x] collectd
|
||||||
- [x] dante
|
- [x] dante
|
||||||
- [x] discuz :cn:
|
- [x] discuz :cn:
|
||||||
|
19
clamav/Dockerfile
Normal file
19
clamav/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for clamav
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add -U clamav clamav-libunrar \
|
||||||
|
&& cd /etc/clamav/ \
|
||||||
|
&& mv clamd.conf.sample clamd.conf \
|
||||||
|
&& mv freshclam.conf.sample freshclam.conf \
|
||||||
|
&& freshclam \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
ENTRYPOINT ["clamscan"]
|
||||||
|
CMD ["--help"]
|
32
clamav/README.md
Normal file
32
clamav/README.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
clamav
|
||||||
|
======
|
||||||
|
|
||||||
|
![](https://badge.imagelayers.io/vimagick/clamav:latest.svg)
|
||||||
|
|
||||||
|
[ClamAV®][1] is an open source antivirus engine for detecting trojans, viruses,
|
||||||
|
malware & other malicious threats.
|
||||||
|
|
||||||
|
## Up and Running
|
||||||
|
|
||||||
|
```
|
||||||
|
# create a function
|
||||||
|
function av() {
|
||||||
|
local DIR=${1:-$PWD}
|
||||||
|
docker run --rm -v "$DIR:/data" --name clamav vimagick/clamav -i -r
|
||||||
|
}
|
||||||
|
|
||||||
|
# scan a directory
|
||||||
|
av ~/Downloads
|
||||||
|
|
||||||
|
# ----------- SCAN SUMMARY -----------
|
||||||
|
# Known viruses: 4297635
|
||||||
|
# Engine version: 0.99
|
||||||
|
# Scanned directories: 1
|
||||||
|
# Scanned files: 3
|
||||||
|
# Infected files: 0
|
||||||
|
# Data scanned: 0.02 MB
|
||||||
|
# Data read: 0.01 MB (ratio 2.00:1)
|
||||||
|
# Time: 11.623 sec (0 m 11 s)
|
||||||
|
```
|
||||||
|
|
||||||
|
[1]: http://www.clamav.net/
|
Loading…
Reference in New Issue
Block a user