Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

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

Brendan Goubin480f1a03d145
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index ef368b648..c68101d48 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -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"]