diff --git a/Dockerfile b/Dockerfile index 26f35c8..5b389ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]