omkar56 commited on
Commit
876661e
1 Parent(s): 1686504

Update Dockerfile

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