# DeployOps Monitor Dockerfile FROM node:20-alpine # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies (including devDependencies required for Vite build and tsx) RUN npm install # Copy application source code COPY . . # Build the React frontend RUN npm run build # Expose the application ports (3000 for standard, 7860 for Huggingface Spaces) EXPOSE 3000 EXPOSE 7860 # Start the Node.js backend which serves the API and the static React build CMD ["npm", "start"]