add healthcheck

This commit is contained in:
Alex Kelly 2026-03-13 22:38:06 -04:00
commit 2b3ccdad9a

View file

@ -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"]