diff --git a/containers/release/Dockerfile.in b/containers/release/Dockerfile.in index 86147aa56fd552b0abe2936259c15a8c459cf9dd..1a36fee9dfb192ac6d20011c27fdd5619fdc8353 100644 --- a/containers/release/Dockerfile.in +++ b/containers/release/Dockerfile.in @@ -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>" \