feat(docker): add health check to Dockerfile for zerotier-cli

This commit is contained in:
Josh Jacobs
2025-10-26 15:16:30 +00:00
parent 07cefedf03
commit 7d643e3ff6

View File

@@ -21,4 +21,5 @@ RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
RUN echo "${VERSION}" >/etc/zerotier-version RUN echo "${VERSION}" >/etc/zerotier-version
COPY entrypoint.sh entrypoint.sh COPY entrypoint.sh entrypoint.sh
RUN chmod 755 entrypoint.sh RUN chmod 755 entrypoint.sh
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 CMD sh -c 'zerotier-cli info 2>/dev/null | grep -q ONLINE'
ENTRYPOINT ["/app/entrypoint.sh"] ENTRYPOINT ["/app/entrypoint.sh"]