AnnSankavi commited on
Commit
6893724
·
1 Parent(s): 95cd467

Fix face_recognition install on HF

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -14,10 +14,13 @@ RUN apt-get update && apt-get install -y \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  WORKDIR /app
17
- COPY . /app
 
 
 
 
18
 
19
- RUN pip install --upgrade pip \
20
- && pip install --no-cache-dir -r requirements.txt
21
 
22
  ENV PORT=7860
23
 
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  WORKDIR /app
17
+ COPY requirements.txt /app/requirements.txt
18
+
19
+ RUN pip install --upgrade pip setuptools wheel \
20
+ && pip install --no-cache-dir -r requirements.txt \
21
+ && python -c "import face_recognition; print('face_recognition ok')"
22
 
23
+ COPY . /app
 
24
 
25
  ENV PORT=7860
26