Updated Clamd Building to be x86 and ARM Compatible

This commit is contained in:
DerLinkman 2023-04-26 08:37:20 +00:00
parent 55fbfbf71b
commit 70121e6f9e
1 changed files with 4 additions and 16 deletions

View File

@ -1,21 +1,9 @@
FROM clamav/clamav:1.0.1-1_base
FROM alpine:3.17
LABEL maintainer "André Peters <andre.peters@servercow.de>"
LABEL maintainer "The Infrastructure Company <info@servercow.de>"
RUN apk upgrade --no-cache \
&& apk add --update --no-cache \
rsync \
bind-tools \
bash
RUN apk update && apk add clamav tini bash
# init
COPY clamd.sh /clamd.sh
RUN chmod +x /sbin/tini
COPY clamd.sh ./
# healthcheck
COPY healthcheck.sh /healthcheck.sh
RUN chmod +x /healthcheck.sh
HEALTHCHECK --start-period=6m CMD "/healthcheck.sh"
ENTRYPOINT []
CMD ["/sbin/tini", "-g", "--", "/clamd.sh"]