bilal01 commited on
Commit
54d61f2
·
1 Parent(s): 73edd89

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -1,5 +1,14 @@
1
  FROM python:3.9
2
 
 
 
 
 
 
 
 
 
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
 
1
  FROM python:3.9
2
 
3
+ RUN useradd -m -u 1000 user
4
+
5
+ # Switch to the "user" user
6
+ USER user
7
+
8
+ # Set home to the user's home directory
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
+
12
  WORKDIR /code
13
 
14
  COPY ./requirements.txt /code/requirements.txt