mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 02:41:35 +00:00
feat(docker): Add Healthcheck
This commit is contained in:
parent
c377b57601
commit
046bf03654
1 changed files with 4 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue