1
0
mirror of https://github.com/zyclonite/zerotier-docker.git synced 2025-03-08 18:31:16 +01:00

Update Dockerfile

Updated to add Healthcheck to the container
This commit is contained in:
gb-123-git 2024-08-20 07:13:30 +05:30 committed by GitHub
parent 712977ef58
commit 3237207844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,4 @@
ARG ALPINE_IMAGE=alpine
ARG ALPINE_VERSION=3.20
ARG ZT_COMMIT=91e7ce87f09ac1cfdeaf6ff22c3cedcd93574c86
@ -28,6 +29,7 @@ LABEL org.opencontainers.image.title="zerotier" \
org.opencontainers.image.source="https://github.com/zyclonite/zerotier-docker"
COPY --from=builder /src/zerotier-one /scripts/entrypoint.sh /usr/sbin/
COPY --from=builder --chmod=755 /scripts/healthcheck.sh /usr/sbin/
RUN apk add --no-cache --purge --clean-protected libc6-compat libstdc++ \
&& mkdir -p /var/lib/zerotier-one \
@ -37,6 +39,9 @@ RUN apk add --no-cache --purge --clean-protected libc6-compat libstdc++ \
EXPOSE 9993/udp
HEALTHCHECK --interval=60s --timeout=8s \
CMD /bin/sh /usr/sbin/healthcheck.sh
ENTRYPOINT ["entrypoint.sh"]
CMD ["-U"]