Spaces:
Sleeping
Sleeping
File size: 488 Bytes
1f14da1 9a2cadc 1f14da1 9a2cadc 1f14da1 9a2cadc 1f14da1 9a2cadc 1f14da1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.14-slim
WORKDIR /code
# Install a more comprehensive set of system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libgomp1 \
libmagic1 \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# Try installing with a slightly higher timeout to prevent network drops
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
CMD ["gunicorn", "--timeout", "120", "-b", "0.0.0.0:7860", "server:app"] |