Spaces:
Sleeping
Sleeping
File size: 505 Bytes
5f6c18b 218f772 5f6c18b 218f772 5f6c18b 218f772 5f6c18b 218f772 5f6c18b 218f772 5f6c18b | 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 python:3.10-slim
# System dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
WORKDIR /app
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Hugging Face default port
EXPOSE 7860
# Gunicorn entrypoint
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "2"]
|