Spaces:
Sleeping
Sleeping
File size: 554 Bytes
ced90d4 5620334 1533be7 c9fb22a 1533be7 5620334 1533be7 ced90d4 5620334 ced90d4 251b641 | 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 | # Use official Python image
FROM python:3.11-slim
# Install the necessary Linux packages so standard OpenCV runs flawlessly
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libx11-xcb1 \
libxcb1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
# Install dependencies cleanly (no pip uninstall hacks!)
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |