nehalelkaref commited on
Commit
5f36da9
1 Parent(s): 628e3af

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile CHANGED
@@ -8,4 +8,16 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY ./ /code
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  CMD ["gunicorn" , "-b", "0.0.0.0:7860", "app:app"]
 
8
 
9
  COPY ./ /code
10
 
11
+ RUN useradd -m -u 1000 user
12
+
13
+ USER user
14
+
15
+ ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
+
18
+ WORKDIR $HOME/code
19
+
20
+ COPY --chown=user . $HOME/app
21
+
22
+
23
  CMD ["gunicorn" , "-b", "0.0.0.0:7860", "app:app"]