Update docker and build to set API host
All checks were successful
release-image / release-image (push) Successful in 10m23s
All checks were successful
release-image / release-image (push) Successful in 10m23s
This commit is contained in:
@@ -19,6 +19,11 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Add an ARG for NEXT_PUBLIC_DRB_BASE_API_URL
|
||||
ARG NEXT_PUBLIC_DRB_BASE_API_URL
|
||||
# Set it as an ENV variable for the build
|
||||
ENV NEXT_PUBLIC_DRB_BASE_API_URL=${NEXT_PUBLIC_DRB_BASE_API_URL}
|
||||
|
||||
# Build the Next.js application for production
|
||||
ENV NODE_ENV=production
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user