Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -15,8 +15,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
|
| 16 |
COPY ./requirements.txt /code/requirements.txt
|
| 17 |
|
|
|
|
| 18 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 19 |
-
pip install --no-cache-dir -r /code/requirements.txt
|
|
|
|
|
|
|
| 20 |
|
| 21 |
COPY . .
|
| 22 |
|
|
|
|
| 15 |
|
| 16 |
COPY ./requirements.txt /code/requirements.txt
|
| 17 |
|
| 18 |
+
# Устанавливаем зависимости, затем заменяем opencv-python на headless (легче, быстрее)
|
| 19 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 20 |
+
pip install --no-cache-dir -r /code/requirements.txt && \
|
| 21 |
+
pip uninstall -y opencv-python && \
|
| 22 |
+
pip install --no-cache-dir opencv-python-headless
|
| 23 |
|
| 24 |
COPY . .
|
| 25 |
|