Changed to debian:stretch as a base

This commit is contained in:
Deon George
2018-01-30 22:41:32 +11:00
parent 74ef5e19b8
commit a5c9084f93
4 changed files with 25 additions and 253 deletions

View File

@@ -1,22 +1,21 @@
# NAME leenooks/clamav
# VERSION latest
FROM registry.leenooks.net/leenooks/base:7.E
FROM debian:stretch
# EPEL & Leenooks packages
RUN yum -y install \
clamav-milter \
clamav-server \
clamav-update \
&& yum clean all
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 3311
EXPOSE 3310
COPY init /sbin/
COPY freshclam.conf /etc
LABEL cron.daily root:/usr/share/clamav/freshclam-sleep
# Starting
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]
VOLUME [ "/var/lib/clamav" ]