FROM python:3.10-slim COPY . /app WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential git && \ pip install --no-cache-dir -r requirements.txt && \ apt-get clean && rm -rf /var/lib/apt/lists/* CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]