# Development Dockerfile for the frontend
FROM node:24-slim

WORKDIR /app

# Install dependencies
COPY package*.json ./
RUN npm ci

# Copy source (will be overridden by volume mount in dev)
COPY . .

# Expose Vite dev server port
EXPOSE 5173

# Run Vite dev server with host flag for Docker
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
