containerize: strip binaries in a less aggressive way (#36683)

This commit is contained in:
Massimiliano Culpo
2023-04-13 17:09:34 +02:00
committed by GitHub
parent b940468890
commit d918ae0bde
4 changed files with 24 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ RUN find -L {{ paths.view }}/* -type f -exec readlink -f '{}' \; | \
xargs file -i | \
grep 'charset=binary' | \
grep 'x-executable\|x-archive\|x-sharedlib' | \
awk -F: '{print $1}' | xargs strip -s
awk -F: '{print $1}' | xargs strip
{% endif %}
# Modifications to the environment that are necessary to run

View File

@@ -37,7 +37,7 @@ EOF
xargs file -i | \
grep 'charset=binary' | \
grep 'x-executable\|x-archive\|x-sharedlib' | \
awk -F: '{print $1}' | xargs strip -s
awk -F: '{print $1}' | xargs strip
{% endif %}
{% if extra_instructions.build %}
{{ extra_instructions.build }}