Skip to content

Commit

Permalink
Precreate and chown snapshots and storage dirs
Browse files Browse the repository at this point in the history
... in unprivileged mode to avoid Docker named volumes being owned by
the root user.
  • Loading branch information
ilkecan committed Nov 2, 2023
1 parent 50f3ef1 commit d8e7005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ ARG USER_ID=0
RUN if [ "$USER_ID" != 0 ]; then \
groupadd --gid "$USER_ID" qdrant; \
useradd --uid "$USER_ID" --gid "$USER_ID" -m qdrant; \
mkdir snapshots storage \
chown -R "$USER_ID:$USER_ID" "$APP"; \
fi

Expand Down

0 comments on commit d8e7005

Please sign in to comment.