Samuel L Meyers commited on
Commit
7ddc8e9
·
1 Parent(s): c9b3dc9

Change pip install to use local dir

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -7,8 +7,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
 
14
  USER user
@@ -20,6 +18,8 @@ WORKDIR $HOME/app
20
 
21
  COPY --chown=user /code $HOME/app
22
 
 
 
23
  COPY . .
24
 
25
  CMD ["python", "app.py"]
 
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
 
 
10
  RUN useradd -m -u 1000 user
11
 
12
  USER user
 
18
 
19
  COPY --chown=user /code $HOME/app
20
 
21
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
22
+
23
  COPY . .
24
 
25
  CMD ["python", "app.py"]