Dockerfile 818 B

1234567891011121314151617181920212223242526
  1. FROM alpine:3.6
  2. LABEL maintainer "André Peters <andre.peters@servercow.de>"
  3. # Add scripts
  4. COPY dl_files.sh bootstrap.sh ./
  5. # Installation
  6. RUN apk add --update \
  7. && apk add --no-cache clamav clamav-libunrar curl bash \
  8. && chmod +x /dl_files.sh \
  9. && set -ex; /bin/bash /dl_files.sh \
  10. && mkdir /run/clamav \
  11. && chown clamav:clamav /run/clamav \
  12. && chmod 750 /run/clamav \
  13. && sed -i '/Foreground yes/s/^#//g' /etc/clamav/clamd.conf \
  14. && sed -i '/TCPSocket 3310/s/^#//g' /etc/clamav/clamd.conf \
  15. && sed -i 's/#PhishingSignatures yes/PhishingSignatures no/g' /etc/clamav/clamd.conf \
  16. && sed -i 's/#PhishingScanURLs yes/PhishingScanURLs no/g' /etc/clamav/clamd.conf \
  17. && sed -i '/Foreground yes/s/^#//g' /etc/clamav/freshclam.conf
  18. # Port provision
  19. EXPOSE 3310
  20. # AV daemon bootstrapping
  21. CMD ["/bootstrap.sh"]