22 lines
552 B
Docker
22 lines
552 B
Docker
# NAME leenooks/clamav
|
|
# VERSION latest
|
|
|
|
FROM debian:stretch-slim
|
|
|
|
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" ]
|