๐Ÿ’ป My personal website blog.kacaii.dev/
blog gleam lustre

Add a healthcheck.sh script #1

closed opened by kacaii.dev edited

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" ]

Closed with 0b80ba72

sign up or login to add to the discussion
Labels

None yet.

assignee
Participants 1
AT URI
at://did:plc:dvyyslcz7bicxdumlccviqyv/sh.tangled.repo.issue/3macpkhi6vf22