Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| # Install Tkinter dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| tk \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Create cache directory with proper permissions | |
| RUN mkdir -p /.cache && chmod 777 /.cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt \ | |
| && pip install torch --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install sentence-transformers | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"] |