Add healthcheck for client
This commit is contained in:
parent
418e09f08a
commit
c92aa63d71
5 changed files with 106 additions and 5 deletions
|
|
@ -16,10 +16,14 @@ LABEL org.opencontainers.image.licenses="MIT"
|
|||
LABEL org.opencontainers.image.authors="andras@schmelczer.dev"
|
||||
|
||||
COPY --from=builder /build/local-client-cli/dist/cli.js /app/cli.js
|
||||
COPY --from=builder /build/local-client-cli/dist/healthcheck.js /app/healthcheck.js
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=1 \
|
||||
CMD node /app/healthcheck.js /tmp/vaultlink-health.json
|
||||
|
||||
WORKDIR /vault
|
||||
|
||||
VOLUME ["/vault"]
|
||||
|
||||
ENTRYPOINT ["node", "/app/cli.js"]
|
||||
ENTRYPOINT ["node", "/app/cli.js", "--health", "/tmp/vaultlink-health.json"]
|
||||
CMD ["--help"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue