# Development Dockerfile for Vue.js Vite frontend
FROM node:20-alpine

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy source code
COPY . .

# Expose Vite development port (default 5173)
EXPOSE 5173

# Start development server with host binding for hot-reload
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]