# Development Dockerfile for Frontend - Vite Dev Server # This runs the Vite dev server with hot reload and unminified React FROM node:18-alpine WORKDIR /app # Install dependencies COPY package*.json ./ RUN npm ci --verbose && \ npm cache clean --force # Copy source code COPY . . # Expose Vite dev server port EXPOSE 3000 # Set NODE_ENV to development for unminified React ENV NODE_ENV=development # Start Vite dev server with host binding for Kubernetes # --host 0.0.0.0 allows external access from Kubernetes # --port 3000 keeps the same port as production CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "3000"]