mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +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 \
|
||||
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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue