Skip to content

Commit

Permalink
config: add healthcheck to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Dec 9, 2023
1 parent 5c652f5 commit 1f994b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ RUN pnpm run build

EXPOSE 8000

HEALTHCHECK --interval=10s --timeout=5s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8000 || exit 1

CMD [ "pnpm", "serve" ]

0 comments on commit 1f994b0

Please sign in to comment.