Skip to content

Commit

Permalink
πŸ‘¨β€πŸ’» Add healthcheck for the docker (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
Billos authored Feb 5, 2025
1 parent d7cb362 commit 480f1a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN apt-get update \
openssl \
zlib1g \
libgcc-s1 \
curl \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app
Expand Down Expand Up @@ -64,4 +65,6 @@ ARG SELF_HOSTED
ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED
ENV HOSTNAME=0.0.0.0

HEALTHCHECK CMD curl --fail http://localhost:${PORT}/api/status || exit 1

CMD ["./docker-start.sh"]

0 comments on commit 480f1a0

Please sign in to comment.