# Dockerfile for Fake Backend # Development mock API server for LogWhisperer AI FROM node:20-alpine # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm ci --only=production # Copy server code COPY server.js ./ # Expose port 3000 EXPOSE 3000 # Set environment variables ENV PORT=3000 ENV DELAY_MS=1500 ENV NODE_ENV=production # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node -e "require('http').get('http://localhost:3000/health', (r) => r.statusCode === 200 ? process.exit(0) : process.exit(1))" # Start server CMD ["node", "server.js"]