Updated Clamd Building to be x86 and ARM Compatible
This commit is contained in:
parent
55fbfbf71b
commit
70121e6f9e
|
@ -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 \
|
RUN apk update && apk add clamav tini bash
|
||||||
&& apk add --update --no-cache \
|
|
||||||
rsync \
|
|
||||||
bind-tools \
|
|
||||||
bash
|
|
||||||
|
|
||||||
# init
|
COPY clamd.sh ./
|
||||||
COPY clamd.sh /clamd.sh
|
|
||||||
RUN chmod +x /sbin/tini
|
|
||||||
|
|
||||||
# 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"]
|
CMD ["/sbin/tini", "-g", "--", "/clamd.sh"]
|
Loading…
Reference in New Issue