FROM node:20-slim

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Expose Vite port
EXPOSE 5173

# Start Vite dev server
CMD ["npx", "vite", "--host", "0.0.0.0", "--port", "5173"]
