AdrienB134 commited on
Commit
bbf8b0c
·
verified ·
1 Parent(s): b929374

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile CHANGED
@@ -1,3 +1,18 @@
1
  FROM qdrant/qdrant:latest
2
 
3
  RUN useradd -m -u 1000 user
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM qdrant/qdrant:latest
2
 
3
  RUN useradd -m -u 1000 user
4
+ # Switch to the "user" user
5
+ USER user
6
+
7
+ # Set home to the user's home directory
8
+ ENV HOME=/home/user \
9
+ PATH=/home/user/.local/bin:$PATH
10
+
11
+ # Set the working directory to the user's home directory
12
+ WORKDIR $HOME/app
13
+
14
+ # Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
15
+ RUN pip install --no-cache-dir --upgrade pip
16
+
17
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
+ COPY --chown=user . $HOME/app