mirror of
https://github.com/hassio-addons/addon-glances.git
synced 2025-05-05 03:21:36 +00:00
🔨 Removes unused files from image
This commit is contained in:
parent
a78efb1ce0
commit
ce3567cda5
1 changed files with 6 additions and 1 deletions
|
@ -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 /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue