Your favorite shift management application!
fix: health check (#102)
panteLa52d7498b6cc
diff --git a/Dockerfile b/Dockerfileindex fc6693f..e4b9ee0 100644--- a/Dockerfile+++ b/Dockerfile@@ -78,8 +78,8 @@ RUN echo "$VERSION" > /app/.versionEXPOSE 3000# Health check-HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \- CMD node -e "require('http').get('http://localhost:3000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"+HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \+ CMD node -e "require('http').get('http://localhost:3000', (r) => {r.resume(); r.on('end', () => process.exit(r.statusCode === 200 ? 0 : 1))}).on('error', () => process.exit(1))"# Use dumb-init to handle signals properlyENTRYPOINT ["/usr/bin/dumb-init", "--"]