clamav/Dockerfile
2018-01-30 22:41:32 +11:00

22 lines
547 B
Docker

# NAME leenooks/clamav
# VERSION latest
FROM debian:stretch
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/*
EXPOSE 3310
COPY init /sbin/
# Starting
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]
VOLUME [ "/var/lib/clamav" ]