use the /api/status rather than / for healthcheck

This commit is contained in:
Chris Nesbitt-Smith
2018-09-26 14:55:42 +01:00
parent 2eff8734df
commit 6bc6555894
+1 -1
View File
@@ -14,4 +14,4 @@ ENV NODE_ENV production
ENTRYPOINT ["node", "-r", "esm", "./bin/server"]
HEALTHCHECK --start-period=30s \
CMD curl -s localhost:$(netstat -nltWep | grep 1/node | awk '{ print $4 }'| cut -d ":" -f 2) || exit 1
CMD curl -s localhost:$(netstat -nltWep | grep 1/node | awk '{ print $4 }'| cut -d ":" -f 2)/api/status || exit 1