Fix healthcheck: use node instead of wget, relax client dependency to service_started

This commit is contained in:
MayaTheShy
2026-03-21 18:03:22 -04:00
parent d4d6e5e480
commit bbc44c3d97
2 changed files with 4 additions and 4 deletions

View File

@@ -12,6 +12,6 @@ COPY . .
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO /dev/null http://localhost:3001/api/health
CMD node -e "require('http').get('http://localhost:3001/api/health',r=>{process.exit(r.statusCode===200?0:1)}).on('error',()=>process.exit(1))"
CMD ["node", "server.js"]