ejschwartz commited on
Commit
c3110c4
·
verified ·
1 Parent(s): 2e59cda

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -8,16 +8,17 @@ COPY ./requirements.txt /code/requirements.txt
8
 
9
  RUN apt-get -y update && apt-get -y install python3-pip
10
 
 
11
 
12
- # Set up a new user named "user" with user ID 1000
13
- RUN useradd -m -u 1000 user
14
 
15
  # Switch to the "user" user
16
  USER user
17
 
18
- RUN pip3 install --no-cache-dir --upgrade setuptools pip
19
 
20
- RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
21
 
22
  # Set home to the user's home directory
23
  ENV HOME=/home/user \
 
8
 
9
  RUN apt-get -y update && apt-get -y install python3-pip
10
 
11
+ RUN cat /etc/passwd
12
 
13
+ # Set up a new user named "user"
14
+ RUN useradd -m user
15
 
16
  # Switch to the "user" user
17
  USER user
18
 
19
+ RUN pip3 install --break-system-packages --no-cache-dir --upgrade setuptools pip
20
 
21
+ RUN pip3 install --break-system-packages --no-cache-dir --upgrade -r /code/requirements.txt
22
 
23
  # Set home to the user's home directory
24
  ENV HOME=/home/user \