mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
👨💻 Add healthcheck for the docker (#1541)
This commit is contained in:
parent
d7cb362c0b
commit
480f1a03d1
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@ RUN apt-get update \
|
||||||
openssl \
|
openssl \
|
||||||
zlib1g \
|
zlib1g \
|
||||||
libgcc-s1 \
|
libgcc-s1 \
|
||||||
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -64,4 +65,6 @@ ARG SELF_HOSTED
|
||||||
ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED
|
ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED
|
||||||
ENV HOSTNAME=0.0.0.0
|
ENV HOSTNAME=0.0.0.0
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl --fail http://localhost:${PORT}/api/status || exit 1
|
||||||
|
|
||||||
CMD ["./docker-start.sh"]
|
CMD ["./docker-start.sh"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue