# 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