# Development Dockerfile with hot reload for Vite React application
FROM node:18-alpine

WORKDIR /app

# Copy package.json and lock file
COPY package.json pnpm-lock.yaml ./

# Install dependencies
RUN npm install -g pnpm && \
    pnpm install

# Copy project files
COPY . .

# Expose port for Vite dev server
EXPOSE 5173

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