From 2b0eaaad710d08b2a5b82918c5f6c218fbad801e Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 30 Dec 2024 19:06:28 +0400 Subject: [PATCH 1/2] build deps Signed-off-by: Dmitriy Safronov --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3513047..2c0cb7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ RUN apt-get update && \ ############################################################ FROM base AS builder -ENV BUILD_DEPENDENCIES="pkg-config build-essential python3-dev libmariadb-dev libpq-dev libxml2-dev libxslt-dev libffi-dev libjpeg-dev zlib1g-dev liblzma-dev libbz2-dev" +ENV BUILD_DEPENDENCIES="pkg-config build-essential libmariadb-dev libpq-dev libxml2-dev libxslt-dev libffi-dev libjpeg-dev zlib1g-dev liblzma-dev libbz2-dev" COPY --from=git /tmp/requirements.txt /home/sopds/ COPY requirements-override.txt /home/sopds/ RUN apt-get update && \ -- GitLab From 430559805d6f0bae9876cac2275f92e83ff52dbf Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Mon, 30 Dec 2024 19:07:02 +0400 Subject: [PATCH 2/2] cleanup Signed-off-by: Dmitriy Safronov --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c0cb7a..5ea4e7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,9 @@ RUN apt-get update && \ 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 && \ - find /opt/sopds \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rvf '{}' \+ + 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