FROM python:3.12-slim WORKDIR /app RUN pip install --no-cache-dir \ fastapi==0.115.* \ "uvicorn[standard]"==0.32.* \ httpx==0.28.* COPY server.py index.html ./ # HF Spaces require the app to listen on 7860 EXPOSE 7860 CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]