File size: 747 Bytes
15a6316
 
d41f95d
 
 
4489c0a
d41f95d
4489c0a
 
 
 
 
 
d41f95d
 
4489c0a
 
 
d41f95d
 
 
4489c0a
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM qdrant/qdrant:latest

# Create all required directories with proper permissions
RUN mkdir -p /qdrant/config /qdrant/storage /qdrant/snapshots/tmp && \
    chmod -R 777 /qdrant/storage /qdrant/snapshots /qdrant/config

# Create a configuration file with all necessary paths explicitly defined
RUN echo '{ \
  "service": { \
    "http_port": 7860, \
    "host": "0.0.0.0" \
  }, \
  "storage": { \
    "storage_path": "/qdrant/storage", \
    "snapshots_path": "/qdrant/snapshots" \
  } \
}' > /qdrant/config/config.yaml

# Set working directory
WORKDIR /qdrant

# Expose both the default Qdrant port and Hugging Face port
EXPOSE 6333 7860

# Start with custom config
CMD ["/qdrant/entrypoint.sh", "--config-path", "/qdrant/config/config.yaml"]