# Development Dockerfile with hot reload support
FROM node:20-alpine

WORKDIR /app

# Install pnpm
RUN npm install -g pnpm

# Copy package files
COPY package.json pnpm-lock.yaml ./

# Install dependencies
RUN pnpm install --frozen-lockfile

# Copy source code
COPY . .

# Expose port for Angular dev server
EXPOSE 4200

# Start Angular development server
CMD ["pnpm", "start"]
