diff --git a/Dockerfile b/Dockerfile index 3513047df4e98250011aab84ada0c7bde366b7a0..5ea4e7ed2e29c6b729fc59647a67db3004a7b324 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 && \ @@ -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 "{}" \; ############################################################