rairo commited on
Commit
cd153fa
·
verified ·
1 Parent(s): 0e66fd4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -6,13 +6,19 @@ USER user
6
 
7
  WORKDIR /code
8
 
9
- COPY ./requirements.txt /code/requirements.txt
10
-
11
  RUN chown -R user:user /code
12
 
13
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
 
 
 
 
 
14
 
15
- COPY --chown=user:user . /code
16
 
17
  #ENTRYPOINT ["gunicorn", "main:app"]
18
 
 
6
 
7
  WORKDIR /code
8
 
 
 
9
  RUN chown -R user:user /code
10
 
11
+ ENV HOME=/home/user
12
+
13
+ ENV PATH=/home/user/.local/bin:$PATH
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ COPY ./requirements.txt ./
18
+
19
+ RUN pip install --no-cache-dir -r ./requirements.txt
20
 
21
+ COPY --chown=user . $HOME/app
22
 
23
  #ENTRYPOINT ["gunicorn", "main:app"]
24