From bde8f6fd03c2bb459aa67fe6fc985293bc5e12c4 Mon Sep 17 00:00:00 2001 From: Haoyang Li <121718002+heyemlee@users.noreply.github.com> Date: Sat, 7 Nov 2026 04:55:38 +0000 Subject: [PATCH] fix(web): bind the Docker image to 0.0.0.0 instead of the container ID (#45193) Co-authored-by: Claude Opus 5.5 --- web/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/Dockerfile b/web/Dockerfile index a2e72d3a10c..19592b5bd79 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -56,6 +56,9 @@ ENV APP_API_URL=http://127.0.0.1:5001 ENV MARKETPLACE_API_URL=https://marketplace.dify.ai ENV MARKETPLACE_URL=https://marketplace.dify.ai ENV PORT=3000 +# Next.js standalone binds to HOSTNAME. Docker defaults it to the container ID, and +# net.Server.listen() takes an ID like 30889528e495 as a numeric backlog, not a host. +ENV HOSTNAME=0.0.0.0 ENV EXPERIMENTAL_ENABLE_VINEXT=false ENV NEXT_TELEMETRY_DISABLED=1