# Build stage FROM node:18-alpine AS build # Set working directory WORKDIR /app # Copy package files COPY package.json package-lock.json* ./ # Install dependencies RUN npm install # Copy application code COPY . . # Build argument for API URL (can be overridden at build time) ARG VITE_API_URL ENV VITE_API_URL=${VITE_API_URL} # Build the application RUN npm run build # Production stage FROM nginx:alpine # Copy custom nginx config COPY <