fix: inject NEXT_PUBLIC_API_URL arg into frontend docker build

This commit is contained in:
Mohan Ki
2026-07-27 15:16:23 +05:30
parent 842dcc1f03
commit c55ac6225a
+4
View File
@@ -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