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