-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
41 lines (32 loc) · 1.45 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM chambana/base:latest
MAINTAINER Josh King <[email protected]>
RUN apt-get -qq update && \
apt-get install -y --no-install-recommends amavisd-new \
clamav \
clamav-daemon \
clamav-freshclam \
pyzor \
razor \
cron \
rsyslog \
spamassassin \
supervisor \
gnupg && \
apt-get clean && rm -rf /var/lib/apt/lists/*
VOLUME ["/var/lib/amavis/.spamassassin"]
RUN gpasswd -a clamav amavis
RUN gpasswd -a amavis clamav
ADD files/spamassassin/local.cf /etc/spamassassin/local.cf
ADD files/default.spamassassin /etc/default/spamassassin
ADD files/amavis/50-user /etc/amavis/conf.d/50-user
ADD files/clamav/clamd.conf /etc/clamav/clamd.conf
ADD files/rsyslog/rsyslog.conf /etc/rsyslog.conf
RUN freshclam
RUN chown -R clamav:clamav /var/lib/clamav
ADD files/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
EXPOSE 10024
## Add startup script.
ADD bin/run.sh /app/bin/run.sh
RUN chmod 0755 /app/bin/run.sh
ENTRYPOINT ["/app/bin/run.sh"]
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]