diff --git a/glances/Dockerfile b/glances/Dockerfile index 59f46c2..4992642 100755 --- a/glances/Dockerfile +++ b/glances/Dockerfile @@ -23,7 +23,12 @@ RUN \ \ && pip3 install --no-cache-dir -r /tmp/requirements.txt \ \ - && apk del --purge .build-dependencies + && find /usr/local \ + \( -type d -a -name test -o -name tests -o -name '__pycache__' \) \ + -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ + -exec rm -rf '{}' + \ + \ + && apk del --purge .build-dependencies \ # Copy root filesystem COPY rootfs /