Spaces:
Sleeping
Sleeping
Download Dockerfile from justmotes/xvector-db-node: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/justmotes/xvector-db-node/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/justmotes/xvector-db-node/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/justmotes/xvector-db-node/resolve/main/Dockerfile
540 Bytes
| # Use the official Qdrant image | |
| FROM qdrant/qdrant:latest | |
| # 1. Configure Port for Hugging Face (7860) | |
| ENV QDRANT__SERVICE__HTTP_PORT=7860 | |
| # 2. Security: Set your API Key | |
| ENV QDRANT__SERVICE__API_KEY="xvector_secret_pass_123" | |
| # 3. Enable Distributed Mode (Required for Custom Sharding) | |
| ENV QDRANT__CLUSTER__ENABLED="true" | |
| # 4. Expose the HTTP Port | |
| EXPOSE 7860 | |
| # 5. THE FIX: Explicitly set the P2P URI to localhost | |
| # This tells Qdrant: "I am the first node, and I live at this address." | |
| CMD ["./qdrant", "--uri", "http://127.0.0.1:6335"] |