This commit is contained in:
2025-09-11 07:45:25 -07:00
parent ca8798848e
commit 955946e79d
2873 changed files with 299107 additions and 183282 deletions

View File

@@ -1,6 +1,10 @@
# Stage 1: Build application
FROM node:20-alpine AS builder
# Allow environment variables to be passed at build time
ARG REACT_APP_API_URL
ENV REACT_APP_API_URL=$REACT_APP_API_URL
WORKDIR /app
# Copy package manifests first for optimal caching
@@ -9,7 +13,7 @@ COPY package.json package-lock.json* ./
# Clean cache and install dependencies
RUN npm cache clean --force && \
export NODE_OPTIONS="--max-old-space-size=1024" && \
npm install --include=dev
npm install --omit=dev --legacy-peer-deps
# Copy source files
COPY . .