From 1fd1901bbd25823ffa2a36f9718b36ce8fdb717f Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 30 Dec 2024 19:32:20 +0400 Subject: [PATCH] optimize dockerfile Signed-off-by: Dmitriy Safronov --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ea4e7e..93fb662 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ python3 -m venv /opt/sopds && \ - pip3 install --ignore-installed --no-cache-dir --upgrade --disable-pip-version-check pip setuptools wheel && \ - pip3 install --ignore-installed --no-cache-dir -r requirements.txt -r requirements-override.txt && \ + pip3 install --ignore-installed --no-cache-dir --disable-pip-version-check --upgrade pip setuptools wheel && \ + pip3 install --ignore-installed --no-cache-dir --disable-pip-version-check -r requirements.txt -r requirements-override.txt && \ find /opt/sopds -type d -a \( -name test -o -name tests -o -name idle_test \) -exec rm -rvf '{}' \+ && \ find /opt/sopds -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) -follow -delete -exec echo "{}" \; && \ find /opt/sopds -type f -a \( -name "*.c" -o -name "*.h" -o -name "*.o" \) -follow -delete -exec echo "{}" \; -- GitLab