add a docker healthcheck #98

Closed
chrisns wants to merge 2 commits from docker-healthcheck into master
Showing only changes of commit 6bc6555894 - Show all commits
+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