From b53a79790fdba78d9d930a9454e6182c3f004630 Mon Sep 17 00:00:00 2001 From: RanchiMall Dev Date: Thu, 5 Jan 2023 09:43:21 +0000 Subject: [PATCH] Added healthcheck.js to Dockerfile --- .gitignore | 5 +++++ Dockerfile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58356e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +healthchecks.md +node_modules/ +notes.js +package-lock.json +package.json \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 3036372..d3156a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ COPY http-proxy.conf . WORKDIR /flosight COPY start.sh . COPY flocore-node.json . +COPY healthcheck.js . RUN mkdir /data RUN chmod 755 /flosight/start.sh @@ -37,5 +38,5 @@ RUN chmod 755 /flosight/start.sh # Expose used ports EXPOSE 80 443 3001 7312 7313 17312 17313 17413 41289 -HEALTHCHECK CMD curl --fail http://localhost:3001/api/sync || exit 1 +HEALTHCHECK CMD node healthcheck.js CMD ["/flosight/start.sh"] \ No newline at end of file