Update Dockerfile
Browse files- Dockerfile +18 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,23 @@
|
|
| 1 |
-
# Use official Qdrant image
|
| 2 |
FROM qdrant/qdrant:latest
|
| 3 |
|
| 4 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
EXPOSE 6333
|
| 6 |
EXPOSE 6334
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
CMD
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Qdrant Docker image as the base
|
| 2 |
FROM qdrant/qdrant:latest
|
| 3 |
|
| 4 |
+
# Set the working directory (optional, for structure)
|
| 5 |
+
WORKDIR /workspace
|
| 6 |
+
|
| 7 |
+
# (Optional) You may want to copy your custom config or scripts here
|
| 8 |
+
# COPY production.yaml /workspace/production.yaml
|
| 9 |
+
# Or add other dependencies if your app requires
|
| 10 |
+
|
| 11 |
+
# Hugging Face Spaces require data to be written in /tmp
|
| 12 |
+
# Mount /tmp as the Qdrant storage directory
|
| 13 |
+
ENV QDRANT__STORAGE__STORAGE_PATH=/tmp/qdrant_storage
|
| 14 |
+
|
| 15 |
+
# Expose Qdrant ports used for REST and gRPC
|
| 16 |
EXPOSE 6333
|
| 17 |
EXPOSE 6334
|
| 18 |
|
| 19 |
+
# (Optional) Default healthcheck
|
| 20 |
+
HEALTHCHECK CMD curl --fail http://localhost:6333 || exit 1
|
| 21 |
+
|
| 22 |
+
# Entrypoint: Start Qdrant
|
| 23 |
+
CMD ["qdrant"]
|