Minimal CLI for check healthcheck in node apps with docker
healtcheck <host> <port> <path>
# Example
healtcheck 127.0.0.1 3000 /healtcheck
Install healtcheck-cli
as global dependency and add HEALTHCHECK
instruction.
FROM node:8-onbuild
RUN npm i -g healtcheck-cli
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s \
CMD healtcheck 127.0.0.1 3000 /healthcheck