# Dockerfile.dev - Development container for LogWhisperer AI Frontend # Optimized for Node.js with Hot Module Replacement (HMR) FROM node:20-alpine # Set working directory WORKDIR /app # Install dependencies for file watching (needed for HMR in Docker) RUN apk add --no-cache git # Copy package files first (for better caching) COPY package*.json ./ # Install dependencies RUN npm ci # Copy the rest of the application COPY . . # Expose port 5173 for Vite dev server EXPOSE 5173 # Command to run the development server # Using --host 0.0.0.0 to allow connections from outside the container CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]