Skip to content

Commit

Permalink
wget healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Aug 29, 2024
1 parent d161aa5 commit f382674
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ RUN adduser -H -D container -s /bin/bash
ENV USER=container HOME=/home/container
USER container

HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
HEALTHCHECK --interval=5m --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1

COPY entrypoint.sh /entrypoint.sh

Expand All @@ -49,6 +50,7 @@ ENV DATABASE_URL "file:/app/config/db.sqlite"
ARG VERSION
ENV VERSION=$VERSION

HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
HEALTHCHECK --interval=5m --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1

CMD [ "pnpm", "start" ]

0 comments on commit f382674

Please sign in to comment.