2017-06-02 13:48:48 +00:00
|
|
|
# NAME leenooks/clamav
|
|
|
|
# VERSION latest
|
|
|
|
|
2018-01-30 11:41:32 +00:00
|
|
|
FROM debian:stretch
|
2017-06-02 13:48:48 +00:00
|
|
|
|
2018-01-30 11:41:32 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install clamav-daemon -yyq \
|
|
|
|
&& sed -i 's/Foreground false/Foreground true/' /etc/clamav/clamd.conf \
|
|
|
|
&& echo "TCPSocket 3310" >> /etc/clamav/clamd.conf \
|
|
|
|
&& echo "PidFile /var/run/clamav/clamd.pid" >> /etc/clamav/clamd.conf \
|
|
|
|
&& mkdir /var/run/clamav && chown clamav:clamav /var/run/clamav \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
2017-06-02 13:48:48 +00:00
|
|
|
|
2018-01-30 11:41:32 +00:00
|
|
|
EXPOSE 3310
|
2017-06-02 13:48:48 +00:00
|
|
|
|
|
|
|
COPY init /sbin/
|
|
|
|
|
|
|
|
# Starting
|
|
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
|
|
CMD [ "start" ]
|
2018-01-30 11:41:32 +00:00
|
|
|
VOLUME [ "/var/lib/clamav" ]
|