diff --git a/docker/ai-delegate/Dockerfile b/docker/ai-delegate/Dockerfile index c070162c4b25dfdc822f77373c990d24873ee54f..ec885b63911c9b6208488c98cf61ae72d0596b80 100644 --- a/docker/ai-delegate/Dockerfile +++ b/docker/ai-delegate/Dockerfile @@ -24,8 +24,8 @@ ENV PORT=3000 EXPOSE 3000 -# Health check +# Health check (use 127.0.0.1 instead of localhost to avoid IPv6 resolution issues in Alpine) HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1 + CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/health || exit 1 CMD ["node", "server.js"]