Spaces:
Sleeping
Sleeping
| FROM node:18-slim | |
| WORKDIR /app | |
| # Installation des dépendances système nécessaires | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy package files | |
| COPY package.json ./ | |
| # Install dependencies with increased network timeout | |
| RUN npm install --network-timeout=100000 | |
| # Copy application files | |
| COPY server.js ./ | |
| COPY public ./public | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Start the server with increased debugging | |
| CMD ["node", "--trace-warnings", "server.js"] |