# Base image FROM python:3.12-slim # Set working directory WORKDIR /app # Copy project files COPY . /app # Upgrade pip RUN pip install --upgrade pip # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose FastAPI port EXPOSE 7860 # Set command for HF Spaces to run your app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]