FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev # Set working directory WORKDIR /app # Copy files COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]