From ac50a7bb8d371514e8a748898f1d0d912ce08772 Mon Sep 17 00:00:00 2001 From: dela Date: Wed, 11 Feb 2026 19:54:44 +0800 Subject: [PATCH] fix: dockerfile --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 451b28c..fd0720c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . # Pass API URL during build time (Next.js inlines this) -ARG NEXT_PUBLIC_API_URL +ARG NEXT_PUBLIC_API_URL=0.0.0.0:8765 ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} RUN npm run build diff --git a/docker-compose.yml b/docker-compose.yml index fc9d1a4..24ef3a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: args: # REPLACE THIS with your actual backend URL (e.g., https://api.yourdomain.com) # Since this is a client-side var, it cannot be "localhost" if accessed from outside the server. - NEXT_PUBLIC_API_URL: http://127.0.0.1:8765 + NEXT_PUBLIC_API_URL: 0.0.0.0:8765 restart: always ports: - "3000:3000"