mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-20 20:16:35 +00:00
Merge pull request #1091 from tcely/patch-11
Check for unresolved Python shared libraries
This commit is contained in:
commit
07c9c458ad
15
Dockerfile
15
Dockerfile
@ -478,8 +478,21 @@ RUN --mount=type=tmpfs,target=/cache \
|
||||
&& \
|
||||
apt-get -y autopurge && \
|
||||
apt-get -y autoclean && \
|
||||
LD_LIBRARY_PATH=/usr/local/lib/python3/dist-packages/pillow.libs:/usr/local/lib/python3/dist-packages/psycopg_binary.libs \
|
||||
find /usr/local/lib/python3/dist-packages/ \
|
||||
-name '*.so*' -print \
|
||||
-exec du -h '{}' ';' \
|
||||
-exec ldd '{}' ';' \
|
||||
>| /cache/python-shared-objects 2>&1 && \
|
||||
rm -v -f /var/cache/debconf/*.dat-old && \
|
||||
rm -v -rf /tmp/*
|
||||
rm -v -rf /tmp/* ; \
|
||||
if grep >/dev/null -Fe ' => not found' /cache/python-shared-objects ; \
|
||||
then \
|
||||
cat -v /cache/python-shared-objects ; \
|
||||
printf -- 1>&2 '%s\n' \
|
||||
ERROR: ' An unresolved shared object was found.' ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
# Copy root
|
||||
COPY config/root /
|
||||
|
Loading…
Reference in New Issue
Block a user