LogicGoInfotechSpaces commited on
Commit
991564c
·
1 Parent(s): 47f3eeb

fix: try installing insightface from git if PyPI fails

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -62,15 +62,10 @@ RUN pip install --no-cache-dir opencv-python-headless
62
  # Install ONNX Runtime
63
  RUN pip install --no-cache-dir onnxruntime==1.17.3
64
 
65
- # Install insightface with better error handling
66
- # Try multiple approaches to handle different failure scenarios
67
  RUN pip install --no-cache-dir insightface==0.7.3 || \
68
- (pip install --no-cache-dir --upgrade pip setuptools wheel && \
69
- pip install --no-cache-dir --no-build-isolation insightface==0.7.3) || \
70
- (echo "InsightFace install failed - trying alternative..." && \
71
- pip install --no-cache-dir --no-build-isolation --no-deps insightface==0.7.3 && \
72
- pip install --no-cache-dir onnxruntime==1.17.3 numpy==1.24.3 opencv-python-headless) || \
73
- (echo "InsightFace installation failed. Check logs above for details." && exit 1)
74
 
75
  # Install utility dependencies
76
  RUN pip install --no-cache-dir \
 
62
  # Install ONNX Runtime
63
  RUN pip install --no-cache-dir onnxruntime==1.17.3
64
 
65
+ # Install insightface - try installing from git repository as fallback
 
66
  RUN pip install --no-cache-dir insightface==0.7.3 || \
67
+ (echo "Standard install failed, trying from git..." && \
68
+ pip install --no-cache-dir git+https://github.com/deepinsight/insightface.git@v0.7.3)
 
 
 
 
69
 
70
  # Install utility dependencies
71
  RUN pip install --no-cache-dir \