From 4bd64024a631e3eef970c8fb268a5b3cf51deabc Mon Sep 17 00:00:00 2001 From: Clawd Date: Thu, 5 Mar 2026 20:15:13 +0000 Subject: [PATCH] Add NEXT_PUBLIC_API_URL build arg to web-ui Dockerfile --- services/web-ui/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web-ui/Dockerfile b/services/web-ui/Dockerfile index a41331d..5634e37 100644 --- a/services/web-ui/Dockerfile +++ b/services/web-ui/Dockerfile @@ -9,7 +9,12 @@ FROM base AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . + +# Build-time env for Next.js public vars +ARG NEXT_PUBLIC_API_URL=http://localhost:8001 +ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} ENV NEXT_TELEMETRY_DISABLED=1 + RUN npm run build FROM base AS runner