mirror of
https://github.com/hassio-addons/addon-base-python.git
synced 2025-05-06 20:31:22 +00:00
Prune left pycache (#104)
This commit is contained in:
parent
5124c516ee
commit
4bf532bb1c
1 changed files with 8 additions and 8 deletions
|
@ -112,13 +112,6 @@ RUN \
|
|||
--no-cache-dir \
|
||||
"pip==$PYTHON_PIP_VERSION" \
|
||||
\
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a \( -name test -o -name tests \) \) \
|
||||
-o \
|
||||
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
|
||||
\) -exec rm -rf '{}' + \
|
||||
\
|
||||
&& apk del --no-cache --purge .build-dependencies \
|
||||
&& rm -f -r \
|
||||
/usr/src \
|
||||
|
@ -126,7 +119,14 @@ RUN \
|
|||
/tmp/* \
|
||||
\
|
||||
&& python3 --version \
|
||||
&& pip3 --version
|
||||
&& pip3 --version \
|
||||
\
|
||||
&& find /usr/local -depth \
|
||||
\( \
|
||||
\( -type d -a \( -name test -o -name tests \) \) \
|
||||
-o \
|
||||
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
|
||||
\) -exec rm -rf '{}' +
|
||||
|
||||
# Entrypoint & CMD
|
||||
ENTRYPOINT ["/init"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue