From 7b8b43f998926297a9417c789e43eb2299d775a8 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 24 Dec 2025 07:42:25 +0530 Subject: [PATCH] fix --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0c2f950..f7fa217 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,13 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Set environment variables for build +# Accept build arguments +ARG NEXT_PUBLIC_API_URL + +# Set environment variables for build (NEXT_PUBLIC_* must be set at build time) ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production +ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} # Build the application RUN npm run build