Spaces:
Runtime error
Runtime error
Download Dockerfile from pvanand/documind-api: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/pvanand/documind-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pvanand/documind-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pvanand/documind-api/resolve/main/Dockerfile
579 Bytes
| 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"] |