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