Skip to content
Snippets Groups Projects
Commit 136e4d75 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

re-enabled stripping for release image

parent 48e614b8
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,12 @@ FROM eicweb.phy.anl.gov:4567/containers/eic_container/eic_builder:@TAG@ as build
RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# Strip all the binaries
#RUN find -L /usr/local/* -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
# This reduces the image size from 3.2GB --> 1.7GB so worth the time
RUN find -L /usr/local/* -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
FROM eicweb.phy.anl.gov:4567/containers/image_recipes/debian_minimal:testing-20210111
LABEL maintainer="Sylvester Joosten <sjoosten@anl.gov>" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment