feat(docker): Add Healthcheck

This commit is contained in:
Brendan Goubin 2025-06-02 00:35:48 +02:00 committed by GitHub
parent c377b57601
commit 046bf03654
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,8 @@ ARG NUSQLITE3_PATH
RUN apk add --no-cache --update \
tzdata \
ffmpeg \
tini
tini \
curl
WORKDIR /app
@ -69,5 +70,7 @@ ENV SOURCE="docker"
ENV NUSQLITE3_DIR=${NUSQLITE3_DIR}
ENV NUSQLITE3_PATH=${NUSQLITE3_PATH}
HEALTHCHECK CMD curl --fail http://localhost:${PORT}/healthcheck || exit 1
ENTRYPOINT ["tini", "--"]
CMD ["node", "index.js"]