Remove health check
All checks were successful
Deploy Apartment API / deploy (push) Successful in 9m41s
All checks were successful
Deploy Apartment API / deploy (push) Successful in 9m41s
This commit is contained in:
@ -24,8 +24,8 @@ USER nodejs
|
||||
EXPOSE 8080
|
||||
|
||||
# Health check - force IPv4 and increase timeout
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||
CMD node -e "const http = require('http'); const port = process.env.PORT || 8080; const req = http.get({hostname: '127.0.0.1', port: port, path: '/health', family: 4}, (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }); req.on('error', () => process.exit(1)); req.setTimeout(5000, () => { req.destroy(); process.exit(1); });"
|
||||
# HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
||||
# CMD node -e "const http = require('http'); const port = process.env.PORT || 8080; const req = http.get({hostname: '127.0.0.1', port: port, path: '/health', family: 4}, (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }); req.on('error', () => process.exit(1)); req.setTimeout(5000, () => { req.destroy(); process.exit(1); });"
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user