FROM python:3.10-slim # Set working directory WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy all source code including data COPY . . # Expose the required port for Hugging Face EXPOSE 7860 # Run the FastAPI server via Uvicorn CMD ["python", "main.py"]