Skip to content

Commit

Permalink
chore: add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Jun 24, 2024
1 parent 87c24a4 commit d685400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ FROM base
COPY --from=build /app/node_modules /app/node_modules
COPY --from=build /app/.svelte-kit /app/.svelte-kit
EXPOSE 5173

HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD wget --quiet --tries=3 --spider http://127.0.0.1:5173/favicon.png || exit 1

CMD ["pnpm", "dev", "--host", "--port", "5173"]

0 comments on commit d685400

Please sign in to comment.