chore: add healthcheck to backend emulator (#3704)

This commit is contained in:
David Germain
2024-06-28 08:41:26 +02:00
committed by GitHub
parent 85a0a8548a
commit d5182a6313

View File

@@ -57,14 +57,16 @@ WORKDIR /app
RUN \
apt-get update && \
apt-get -y install curl && \
# For Firebase
# https://firebase.google.com/docs/emulator-suite/install_and_configure
apt-get -y install openjdk-11-jre-headless && \
# For debugging
apt-get -y install curl && \
apt-get -y install nano && \
apt-get clean
HEALTHCHECK CMD curl --fail http://0.0.0.0:4001 || exit 1
# In this codebase, we prefer to use yarn over npm
# but I couldn't get yarn global install working.
# This works but feel free to make a change.