-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
28 lines (23 loc) · 909 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:jessie-slim
MAINTAINER Dietrich Rordorf <[email protected]>
USER root
# copy assets to image
COPY ./assets /usr/local
# install antivirus and dependencies, get the latest clamav and maldet signatures
RUN apt-get update && \
apt-get install -y apt-utils clamav clamav-daemon curl inotify-tools supervisor host tar wget chkconfig && \
mkdir -p /var/log/supervisor && \
mkdir -p /var/log/cron && \
cd /usr/local/ && chmod +x *.sh && sync && \
cd /usr/local/bin && chmod +x *.sh && sync && \
/usr/local/install_maldet.sh && \
/usr/local/install_antivirus.sh && \
apt-get -y remove curl apt-utils && \
rm -rf /var/cache/* && \
freshclam && \
maldet -u -d
# export volumes (uncomment if you do not mount these volumes at runtime or via docker-compose)
# VOLUME /data/av/queue
# VOLUME /data/av/ok
# VOLUME /data/av/nok
ENTRYPOINT ["/usr/local/entrypoint.sh"]