1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

feat: added TCP healthcheck with nc, better clipboard support, fixed docker deployments and minor changes

This commit is contained in:
Alberto Chiaravalli 2025-09-28 14:32:41 +02:00
parent 990696e419
commit 7992dd607a
No known key found for this signature in database
10 changed files with 70 additions and 37 deletions

View file

@ -20,5 +20,9 @@ COPY --from=builder /go/croc/croc /go/croc/croc-entrypoint.sh /
USER nobody
# Simple TCP health check with nc!
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD nc -z localhost 9009 || exit 1
ENTRYPOINT ["/croc-entrypoint.sh"]
CMD ["relay"]