Adjust usage of apt-mark slightly
This commit is contained in:
parent
5f5304c3dc
commit
a13f567fe9
12
Dockerfile
12
Dockerfile
|
@ -121,18 +121,16 @@ RUN set -eux; \
|
||||||
cd /; \
|
cd /; \
|
||||||
rm -rf /usr/src/qemu; \
|
rm -rf /usr/src/qemu; \
|
||||||
\
|
\
|
||||||
libs="$( \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
|
||||||
find /usr/local -type f -executable -exec ldd '{}' ';' \
|
find /usr/local -type f -executable -exec ldd '{}' ';' \
|
||||||
| awk '/=>/ { print $(NF-1) }' \
|
| awk '/=>/ { print $(NF-1) }' \
|
||||||
| sort -u \
|
| sort -u \
|
||||||
| xargs dpkg-query --search \
|
| xargs -r dpkg-query --search \
|
||||||
| cut -d: -f1 \
|
| cut -d: -f1 \
|
||||||
| sort -u \
|
| sort -u \
|
||||||
)"; \
|
| xargs -r apt-mark manual \
|
||||||
savedAptMark="$savedAptMark $libs"; \
|
; \
|
||||||
\
|
|
||||||
apt-mark auto '.*' > /dev/null; \
|
|
||||||
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; \
|
|
||||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
|
||||||
|
|
||||||
STOPSIGNAL SIGHUP
|
STOPSIGNAL SIGHUP
|
||||||
|
|
Loading…
Reference in New Issue
Block a user