# Frontend Dockerfile FROM node:18-alpine AS builder # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm ci # Copy source code COPY . . # Build arguments for environment variables # For local network: VITE_API_URL will be set dynamically by the container hostname ARG VITE_API_URL ENV VITE_API_URL=$VITE_API_URL # Build the application RUN npm run build # Production stage with Nginx FROM nginx:alpine AS production # Install curl for healthcheck RUN apk add --no-cache curl # Copy custom nginx configuration COPY <