nehalelkaref commited on
Commit
721ebbf
1 Parent(s): 5f36da9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,13 +1,5 @@
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 ./ /code
10
-
11
  RUN useradd -m -u 1000 user
12
 
13
  USER user
@@ -17,7 +9,14 @@ ENV HOME=/home/user \
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"]
 
1
  FROM python:3.9
2
 
 
 
 
 
 
 
 
 
3
  RUN useradd -m -u 1000 user
4
 
5
  USER user
 
9
 
10
  WORKDIR $HOME/code
11
 
12
+ COPY --chown=user . $HOME/code
13
+
14
+ COPY ./requirements.txt /code/requirements.txt
15
+
16
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
+
18
+ COPY ./ $HOME/code
19
+
20
 
21
 
22
  CMD ["gunicorn" , "-b", "0.0.0.0:7860", "app:app"]