Spaces:
Runtime error
Runtime error
| FROM python:3.13-slim | |
| # ✅ Set up DSPy cache directory (important for Hugging Face) | |
| ENV DSPY_CACHE_DIR=/tmp/.dspy_cache | |
| RUN mkdir -p /tmp/.dspy_cache && chmod -R 777 /tmp/.dspy_cache | |
| # Create base working directory inside the container | |
| WORKDIR /app | |
| # Copy requirements file from your Backend folder | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy entire Backend folder to /app/Backend inside container | |
| COPY . /app | |
| # Expose the FastAPI port | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |