feat: Externalize API URLs and JWT secret configuration using build arguments and environment variables with default fallbacks.
This commit is contained in:
1 parent
b8827c67b9
commit
bb4cd01d99
3 files changed
+16
-5
No files matched your search
@@ -14,6 +14,10 @@ WORKDIR /app
|
||||
COPY web/experience/package*.json ./
|
||||
RUN npm install
|
||||
COPY web/experience/ .
|
||||
ARG NEXT_PUBLIC_LMS_API_URL
|
||||
ENV NEXT_PUBLIC_LMS_API_URL=$NEXT_PUBLIC_LMS_API_URL
|
||||
ARG NEXT_PUBLIC_CMS_API_URL
|
||||
ENV NEXT_PUBLIC_CMS_API_URL=$NEXT_PUBLIC_CMS_API_URL
|
||||
RUN npm run build
|
||||
|
||||
# Final stage
|
||||
|
||||
Reference in new issue
Block a user