Spaces:
Sleeping
Sleeping
Commit ·
40ea8bd
1
Parent(s): 16c65b8
Fix dlib compilation OOM by limiting MAX_JOBS
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -17,8 +17,9 @@ WORKDIR /app
|
|
| 17 |
|
| 18 |
# Copier et installer les dépendances Python
|
| 19 |
COPY --chown=user:user requirements.txt .
|
| 20 |
-
RUN pip install --no-cache-dir --upgrade pip
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
# Copier tout le reste du projet
|
| 24 |
COPY --chown=user:user . .
|
|
|
|
| 17 |
|
| 18 |
# Copier et installer les dépendances Python
|
| 19 |
COPY --chown=user:user requirements.txt .
|
| 20 |
+
RUN pip install --no-cache-dir --upgrade pip
|
| 21 |
+
ENV MAX_JOBS=4
|
| 22 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
# Copier tout le reste du projet
|
| 25 |
COPY --chown=user:user . .
|