FROM python:3.12-slim # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 WORKDIR /app # Install FastAPI and Uvicorn RUN pip install --no-cache-dir fastapi uvicorn # Copy deployment files COPY app.py /app/app.py COPY README.md /app/README.md COPY Agent.md /app/Agent.md # Hugging Face Spaces port is 7860 EXPOSE 7860 # Run the application CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]