From 04d0f715c3baadcda313b064f833c0e4c21f624d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 6 Apr 2019 21:19:47 +0200 Subject: [PATCH] :hammer: Reduce image size a little --- appdaemon/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appdaemon/Dockerfile b/appdaemon/Dockerfile index 00413f0..20ca18d 100755 --- a/appdaemon/Dockerfile +++ b/appdaemon/Dockerfile @@ -17,6 +17,11 @@ RUN \ \ && pip3 install --no-cache-dir -r /tmp/requirements.txt \ \ + && 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