This commit is contained in:
2025-09-11 07:45:25 -07:00
parent f443e7a64e
commit 651ce46183
46 changed files with 5063 additions and 164 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 . .