Vaibhav84 commited on
Commit
97cb0e9
·
1 Parent(s): 4d13280
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
  FROM python:3.9
2
-
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
-
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY . .
 
1
  FROM python:3.9
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
  WORKDIR /code
5
 
6
  COPY ./requirements.txt /code/requirements.txt
7
+ RUN chown -R user:user /code
8
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
 
10
  COPY . .