dnote/host/docker/Dockerfile
Sung 03889a3d7e
Converge if using same book names while syncing (#694)
* Add healthcheck for Docker

* Prevent nil pointer if endpoint is wrong

* Converge if using same book names while syncing
2025-10-18 16:03:12 -07:00

19 lines
370 B
Docker

FROM busybox:glibc
ARG tarballName
RUN test -n "$tarballName"
WORKDIR dnote
COPY "$tarballName" .
RUN tar -xvzf "$tarballName"
COPY entrypoint.sh .
ENTRYPOINT ["./entrypoint.sh"]
CMD ./dnote-server start
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
CMD wget --no-verbose --tries=1 -O /dev/null http://localhost:3001/health || exit 1