27 lines
543 B
Docker
27 lines
543 B
Docker
|
ARG ALPINE_VER=3.11
|
||
|
|
||
|
FROM alpine:${ALPINE_VER}
|
||
|
|
||
|
LABEL maintainer="jeff@ressourcenkonflikt.de"
|
||
|
LABEL vendor="https://github.com/jeboehm/docker-mailserver"
|
||
|
LABEL de.ressourcenkonflikt.docker-mailserver.autoheal="true"
|
||
|
|
||
|
ENV FILTER_VIRUS=true
|
||
|
|
||
|
RUN apk --no-cache add \
|
||
|
clamav-daemon \
|
||
|
clamav-libunrar && \
|
||
|
rm -rf /var/log/clamav
|
||
|
|
||
|
COPY rootfs/ /
|
||
|
|
||
|
EXPOSE 3310
|
||
|
USER clamav
|
||
|
|
||
|
RUN /usr/bin/freshclam -l /dev/null
|
||
|
|
||
|
VOLUME ["/var/lib/clamav"]
|
||
|
|
||
|
HEALTHCHECK CMD echo PING | nc 127.0.0.1 3310 | grep PONG
|
||
|
CMD ["/usr/local/bin/entrypoint.sh"]
|