Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -10,10 +10,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
build-essential \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
RUN pip install --no-cache-dir --upgrade pip
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
|
|
|
| 17 |
COPY requirements.txt .
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
|
|
|
| 10 |
build-essential \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Устанавливаем pip и setuptools
|
| 14 |
+
RUN pip install --no-cache-dir --upgrade pip
|
| 15 |
|
| 16 |
+
# Сначала устанавливаем setuptools и wheel
|
| 17 |
+
RUN pip install --no-cache-dir setuptools wheel
|
| 18 |
+
|
| 19 |
+
# Копируем requirements.txt и устанавливаем остальное
|
| 20 |
COPY requirements.txt .
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|