Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Qdrant Docker image
|
| 2 |
+
FROM qdrant/qdrant:v1.15.3
|
| 3 |
+
|
| 4 |
+
# The Qdrant container expects its data to be stored in /qdrant/storage
|
| 5 |
+
# When persistent storage is enabled on Hugging Face Spaces,
|
| 6 |
+
# the /data directory is mounted as a persistent volume.
|
| 7 |
+
# We need to tell Qdrant to use a path within /data for its storage.
|
| 8 |
+
# We'll do this by setting an environment variable that Qdrant recognizes.
|
| 9 |
+
ENV QDRANT__STORAGE__STORAGE_PATH="/qdrant_data"
|
| 10 |
+
|
| 11 |
+
ENV QDRANT__STORAGE__SNAPSHOTS_PATH="/qdrant_snapshots"
|
| 12 |
+
|
| 13 |
+
# Expose the default Qdrant ports (HTTP/REST and gRPC)
|
| 14 |
+
EXPOSE 6333
|
| 15 |
+
EXPOSE 6334
|