FROM python:3.10-slim # Set working directory WORKDIR /app # Copy dependency file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY app.py . # Hugging Face Spaces uses port 7860 EXPOSE 7860 # Start FastAPI (IMPORTANT LINE) CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]