Compare commits

..

2 Commits

Author SHA1 Message Date
bd3542197a add yq
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2024-03-07 16:01:36 -06:00
a2539e2bb0 add healthcheck to dockerfile
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2024-03-02 21:43:15 -06:00

View File

@ -19,4 +19,10 @@ FROM alpine:${ALPINE}
COPY --from=builder /ipfs /bin/ipfs
COPY --from=builder /ipfswatch /bin/ipfswatch
RUN apk add --no-cache yq
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