FROM python:3.9-slim WORKDIR /app # Copy the entire directory COPY . /app # Install dependencies RUN pip install --no-cache-dir -r backend/requirements.txt # Hugging Face Spaces strictly requires port 7860 ENV PORT=7860 EXPOSE 7860 # Change to backend directory so paths resolve correctly WORKDIR /app/backend # Start the application CMD ["python", "main.py"]