Spaces:
Sleeping
Sleeping
Download Dockerfile from Riddwam/islamic-debater-api: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/Riddwam/islamic-debater-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Riddwam/islamic-debater-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Riddwam/islamic-debater-api/resolve/main/Dockerfile
442 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY search_api.py /app/search_api.py | |
| COPY index_ivfpq.faiss /data/index_ivfpq.faiss | |
| COPY mapping.json /data/mapping.json | |
| ENV INDEX_DIR=/data | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "search_api:app", "--host", "0.0.0.0", "--port", "7860"] | |