FROM python:3.10 WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ git \ ffmpeg \ libsm6 \ libxext6 # Copy requirements first for caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Install ByteTrack RUN pip install git+https://github.com/ifzhang/ByteTrack.git@main # Copy app files COPY . . CMD ["python", "app.py"]