From c55ac6225a5c167d4aea6b8fe9d3a232e9c547ef Mon Sep 17 00:00:00 2001 From: Mohan Ki Date: Mon, 27 Jul 2026 15:16:23 +0530 Subject: [PATCH] fix: inject NEXT_PUBLIC_API_URL arg into frontend docker build --- client/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/Dockerfile b/client/Dockerfile index e86ee41..1c0b216 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -2,6 +2,10 @@ FROM node:20-alpine AS builder WORKDIR /app COPY package*.json ./ RUN npm ci + +ARG NEXT_PUBLIC_API_URL +ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL + COPY . . RUN npm run build