Added healthcheck.js to Dockerfile

This commit is contained in:
RanchiMall Dev 2023-01-05 09:43:21 +00:00
parent 3f19804506
commit b53a79790f
2 changed files with 7 additions and 1 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
healthchecks.md
node_modules/
notes.js
package-lock.json
package.json

View File

@ -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"]