add healthcheck to dockerfile
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
James Andariese 2024-03-02 21:43:15 -06:00
parent 2846885c7c
commit a2539e2bb0

View File

@ -20,3 +20,7 @@ COPY --from=builder /ipfs /bin/ipfs
COPY --from=builder /ipfswatch /bin/ipfswatch COPY --from=builder /ipfswatch /bin/ipfswatch
CMD ["ipfs"] CMD ["ipfs"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD ipfs --api=/ip4/127.0.0.1/tcp/5001 dag stat /ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn || exit 1