vrfefavr commited on
Commit
183ba2e
·
verified ·
1 Parent(s): 4e40025

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -24,18 +24,15 @@ ENV PATH="/home/user/.local/bin:$PATH"
24
 
25
  COPY --chown=user requirements.txt .
26
 
27
- # Install base libraries
28
  RUN pip install --no-cache-dir --upgrade pip && \
29
  pip install --no-cache-dir -r requirements.txt
30
 
31
- # Install DeepFace helpers
32
- RUN pip install --no-cache-dir gdown mtcnn retina-face fire tqdm Pillow requests Flask gunicorn
33
 
34
- # Install MediaPipe without dependencies
35
- RUN pip install --no-cache-dir mediapipe==0.10.14 --no-deps
36
-
37
- # Install DeepFace without dependencies
38
- RUN pip install --no-cache-dir deepface==0.0.92 --no-deps
39
 
40
  COPY --chown=user . .
41
 
 
24
 
25
  COPY --chown=user requirements.txt .
26
 
27
+ # 1. Install base libraries (Locks TF-CPU, Numpy 1.x, and OpenCV headless)
28
  RUN pip install --no-cache-dir --upgrade pip && \
29
  pip install --no-cache-dir -r requirements.txt
30
 
31
+ # 2. Install safe DeepFace helpers (These don't pull heavy libraries)
32
+ RUN pip install --no-cache-dir gdown fire tqdm Pillow requests Flask gunicorn
33
 
34
+ # 3. CRITICAL QUARANTINE: Install packages that pull heavy/conflicting dependencies with --no-deps
35
+ RUN pip install --no-cache-dir mtcnn retina-face mediapipe==0.10.14 deepface==0.0.92 --no-deps
 
 
 
36
 
37
  COPY --chown=user . .
38