Spaces:
Sleeping
Sleeping
File size: 524 Bytes
dcb7113 797fa44 ebc06c7 dcb7113 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # 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"]
|