FROM python:3.9 WORKDIR /app # Install system dependencies for OpenCV RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 # Copy and install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]