add healthcheck
This commit is contained in:
parent
24a66638d4
commit
2b3ccdad9a
1 changed files with 3 additions and 1 deletions
|
|
@ -23,11 +23,13 @@ RUN cd logseq/deps/db-sync && mkdir -p /logseq-sync/worker && mv worker/dist /lo
|
|||
FROM node:22-alpine3.21
|
||||
COPY --from=builder /logseq-sync /logseq-sync
|
||||
RUN apk add --no-cache \
|
||||
bash
|
||||
bash \
|
||||
curl
|
||||
|
||||
WORKDIR /logseq-sync
|
||||
|
||||
EXPOSE 8787
|
||||
HEALTHCHECK CMD curl --fail http://localhost:8787/health || exit 1
|
||||
|
||||
# Default command
|
||||
CMD ["bash", "start.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue