FROM python:3.10-slim WORKDIR /code COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY ./app ./app EXPOSE 7860 # Start FastAPI on 7860 (public port HF requires) # Gradio calls FastAPI internally on the same container CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]