mirror of
https://github.com/dnote/dnote
synced 2026-03-15 23:15:50 +01:00
* Add healthcheck for Docker * Prevent nil pointer if endpoint is wrong * Converge if using same book names while syncing
19 lines
370 B
Docker
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
|