We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4de56d commit 709d552Copy full SHA for 709d552
Dockerfile
@@ -16,4 +16,4 @@ ENV PG_META_PORT=8080
16
CMD ["npm", "run", "start"]
17
EXPOSE 8080
18
# --start-period defaults to 0s, but can't be set to 0s (to be explicit) by now
19
-HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost:8080/health || exit 1
+HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:8080/health', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
0 commit comments