File size: 516 Bytes
a081114
ea43740
 
a081114
 
83a3452
a081114
 
 
 
 
 
83a3452
a081114
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 1. Use the official Qdrant image as the base
FROM qdrant/qdrant:latest

# 2. Switch to root user for build-time permissions
USER root

# 3. Key changes:
#    - Create /qdrant/storage and /qdrant/snapshots directories
#    - Recursively set ownership of /qdrant to UID 1000 (qdrant user)
#    - Ensures qdrant user can read/write all current and future subdirectories
RUN mkdir -p /qdrant/storage /qdrant/snapshots && \
    chown -R 1000:1000 /qdrant

# 4. Switch back to non-root qdrant user for runtime
USER 1000