FROM python:3.10-slim # Install system dependencies (specifically git) RUN apt-get update && apt-get install -y --no-install-recommends \ git && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY main.py . EXPOSE 7860 ENV PORT=7860 CMD ["uvicorn", "main.py:app", "--host", "0.0.0.0", "--port", "7860"]