Jainam Jain commited on
Commit
1a60dce
1 Parent(s): 7a6d472

updated req.txt

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