devjas1 commited on
Commit
aeea64e
·
1 Parent(s): cb0d223

(DEPLOY): speed up HF rebuilds by caching deps

Browse files

- Install 'requirements.txt' before copying source so code changes don't re-install deps

Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -11,9 +11,8 @@ RUN apt-get update && apt-get install -y \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  COPY requirements.txt ./
14
- COPY . .
15
-
16
  RUN pip3 install -r requirements.txt
 
17
 
18
  EXPOSE 8501
19
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  COPY requirements.txt ./
 
 
14
  RUN pip3 install -r requirements.txt
15
+ COPY . .
16
 
17
  EXPOSE 8501
18