triflix commited on
Commit
83a3452
·
verified ·
1 Parent(s): ea43740

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -4
Dockerfile CHANGED
@@ -1,9 +1,23 @@
1
- # Use official Qdrant image
2
  FROM qdrant/qdrant:latest
3
 
4
- # Expose ports (internal)
 
 
 
 
 
 
 
 
 
 
 
5
  EXPOSE 6333
6
  EXPOSE 6334
7
 
8
- # Start Qdrant with HF Space dynamic port
9
- CMD ["./qdrant", "--http-port", "${PORT:-6333}"]
 
 
 
 
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"]