Add a `healthcheck.sh` script

did:plc:dvyyslcz7bicxdumlccviqyv opened this Dec 19, 2025 0 comments
did:plc:dvyyslcz7bicxdumlccviqyv opened Dec 19, 2025

Useful for checking if the application is healthy

exec wget --spider --quiet 'http://127.0.0.1:8000'

Add this to the dockerfile:

#
# COPY --from=build /blog/build/erlang-shipment /blog
COPY healthcheck.sh /blog/healthcheck.sh

RUN chmod +x /blog/healthcheck.sh
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD [ "/blog/healthcheck.sh" ]

No activity yet.

cospan · schematic version control on atproto built on AT Protocol