FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 WORKDIR /app RUN apt-get update && apt-get install -y \ git \ python3 \ python3-pip \ libgl1-mesa-glx \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* RUN ln -s /usr/bin/python3 /usr/bin/python COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 7860 CMD ["python", "app.py"]