From cb0b4b8d5215abc369608b30c1302a47abe09ce6 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Mon, 9 Mar 2026 22:07:57 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Fix:=20Use=20env=20vars=20for=20?= =?UTF-8?q?serve=20binding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f5c8127a..3344b01bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,10 +22,11 @@ RUN npm install -g serve # Expose port EXPOSE 3000 -# Environment +# Environment - serve will bind to 0.0.0.0 automatically with these ENV NODE_ENV=production ENV PORT=3000 ENV HOST=0.0.0.0 +ENV SERVE_LISTEN=0.0.0.0:3000 -# Start server - MUST bind to 0.0.0.0 for Docker -CMD ["serve", "dist", "-l", "3000", "--config", "{\"public\":\"dist\",\"directoryListing\":false}"] +# Start server - simple command, env vars handle binding +CMD ["serve", "dist"]