Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from GIZ/chatfed_QdrantServer: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/spaces/GIZ/chatfed_QdrantServer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GIZ/chatfed_QdrantServer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GIZ/chatfed_QdrantServer/resolve/main/Dockerfile
597 Bytes
| # Use the official Qdrant Docker image | |
| FROM qdrant/qdrant:v1.15.3 | |
| # The Qdrant container expects its data to be stored in /qdrant/storage | |
| # When persistent storage is enabled on Hugging Face Spaces, | |
| # the /data directory is mounted as a persistent volume. | |
| # We need to tell Qdrant to use a path within /data for its storage. | |
| # We'll do this by setting an environment variable that Qdrant recognizes. | |
| ENV QDRANT__STORAGE__STORAGE_PATH="/data/qdrant_data" | |
| ENV QDRANT__STORAGE__SNAPSHOTS_PATH="/data/qdrant_snapshots" | |
| # Expose the default Qdrant ports (HTTP/REST and gRPC) | |
| EXPOSE 6333 | |
| EXPOSE 6334 | |