👨‍💻 Add healthcheck for the docker (#1541)

This commit is contained in:
Brendan Goubin 2025-02-05 08:25:33 +01:00 committed by GitHub
parent d7cb362c0b
commit 480f1a03d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,7 @@ RUN apt-get update \
openssl \
zlib1g \
libgcc-s1 \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
@ -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"]