Spaces:
Build error
Build error
update
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -47,9 +47,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 47 |
COPY requirements.txt .
|
| 48 |
|
| 49 |
# Install Python dependencies
|
|
|
|
| 50 |
RUN pip install --no-cache-dir --upgrade pip && \
|
|
|
|
| 51 |
pip install --no-cache-dir -r requirements.txt
|
| 52 |
|
|
|
|
| 53 |
# Copy application files
|
| 54 |
COPY main.py .
|
| 55 |
COPY start_backend.py .
|
|
|
|
| 47 |
COPY requirements.txt .
|
| 48 |
|
| 49 |
# Install Python dependencies
|
| 50 |
+
# Install dlib prebuilt wheel first
|
| 51 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 52 |
+
pip install --no-cache-dir https://github.com/serengil/deepface_models/releases/download/dlib/dlib-19.24.2-cp311-cp311-manylinux2014_x86_64.whl && \
|
| 53 |
pip install --no-cache-dir -r requirements.txt
|
| 54 |
|
| 55 |
+
|
| 56 |
# Copy application files
|
| 57 |
COPY main.py .
|
| 58 |
COPY start_backend.py .
|