Spaces:
Running
Running
File size: 570 Bytes
7c2ea61 dd3436e 7c2ea61 dd3436e 7c2ea61 dd3436e |
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 |
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"] |