Update HEALTHCHECK command in Dockerfile to use wget for improved reliability

This commit is contained in:
MayaTheShy
2026-03-21 17:35:53 -04:00
parent db0151a616
commit a16039e920

View File

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