Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 1 | FROM clamav/clamav:1.0_base |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 2 | |
| 3 | LABEL maintainer "André Peters <andre.peters@servercow.de>" |
| 4 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 5 | RUN apk upgrade --no-cache \ |
| 6 | && apk add --update --no-cache \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 7 | rsync \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 8 | bind-tools \ |
| 9 | bash |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 10 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 11 | # init |
| 12 | COPY clamd.sh /clamd.sh |
| 13 | RUN chmod +x /sbin/tini |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 14 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 15 | # healthcheck |
| 16 | COPY healthcheck.sh /healthcheck.sh |
| 17 | RUN chmod +x /healthcheck.sh |
| 18 | HEALTHCHECK --start-period=6m CMD "/healthcheck.sh" |
| 19 | |
| 20 | ENTRYPOINT [] |
| 21 | CMD ["/sbin/tini", "-g", "--", "/clamd.sh"] |