abubasith86 commited on
Commit
ab889e8
·
verified ·
1 Parent(s): 7f9dd81

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -3,8 +3,11 @@ FROM qdrant/qdrant:v1.11.0
3
  # Expose default ports
4
  EXPOSE 6333 6334
5
 
6
- # Use /data for persistent storage
7
- VOLUME ["/data"]
8
 
9
- # Run Qdrant with custom storage path
10
- CMD ["./qdrant", "--storage", "/data"]
 
 
 
 
3
  # Expose default ports
4
  EXPOSE 6333 6334
5
 
6
+ # Make sure /data exists and is writable
7
+ RUN mkdir -p /data && chmod -R 777 /data
8
 
9
+ # Map storage to /data (persistent dir on HF)
10
+ ENV QDRANT__STORAGE__STORAGE_PATH="/data"
11
+
12
+ # Run Qdrant server
13
+ CMD ["./qdrant"]