DeepVen commited on
Commit
31f7fd4
1 Parent(s): fa877eb

Upload 2 files

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -7,8 +7,7 @@ WORKDIR /code
7
  # Copy the current directory contents into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- # Install requirements.txt
11
- RUN sudo pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
@@ -18,6 +17,9 @@ USER user
18
  ENV HOME=/home/user \
19
  PATH=/home/user/.local/bin:$PATH
20
 
 
 
 
21
  # Set the working directory to the user's home directory
22
  WORKDIR $HOME/app
23
 
 
7
  # Copy the current directory contents into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+
 
11
 
12
  # Set up a new user named "user" with user ID 1000
13
  RUN useradd -m -u 1000 user
 
17
  ENV HOME=/home/user \
18
  PATH=/home/user/.local/bin:$PATH
19
 
20
+ # Install requirements.txt
21
+ RUN pip install --no-cache-dir --upgrade --user -r /code/requirements.txt
22
+
23
  # Set the working directory to the user's home directory
24
  WORKDIR $HOME/app
25