FROM python:3.11-slim WORKDIR /app # Copy requirements first for better caching COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the entire project COPY . . # Expose port 7860 (Hugging Face Spaces default) EXPOSE 7860 # Run the application CMD ["python", "src/main.py"]