From ea00a136ac38c27ff48eef6158861e374e5185c1 Mon Sep 17 00:00:00 2001 From: Do Siki Date: Mon, 17 Aug 2026 17:03:41 +0200 Subject: [PATCH] fix: bind Next server to all container interfaces --- proto/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/Dockerfile b/proto/Dockerfile index 9708141..3406ee0 100755 --- a/proto/Dockerfile +++ b/proto/Dockerfile @@ -27,6 +27,9 @@ WORKDIR /app # Set production environment ENV NODE_ENV=production +# Next standalone otherwise inherits Docker's container-ID HOSTNAME and only binds +# to the container IP. Bind explicitly to all interfaces for port publishing and healthchecks. +ENV HOSTNAME=0.0.0.0 # Create non-root user for security RUN addgroup --system --gid 1001 nodejs