Skip to content

Commit

Permalink
Strip binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennings Zhang authored and Jennings Zhang committed Apr 28, 2023
1 parent b515fb3 commit a9e8f25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# custom build of CIVET 2.1.1 with inflate_to_sphere_implicit
FROM docker.io/fnndsc/civet:unofficial

RUN apt-get update \
&& apt-get install -y binutils

COPY microminc.sh /usr/local/bin/microminc.sh

CMD ["/usr/local/bin/microminc.sh"]
4 changes: 3 additions & 1 deletion microminc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ for prog in "$@"; do
fi

mni_libs_of "$prog" | xargs cp -vut "$output_dir/lib"
cp -vu "$(which $prog)" "$output_dir/bin"
dst="$output_dir/bin/$prog"
cp -vu "$(which $prog)" "$dst"
strip --verbose "$dst"
done

0 comments on commit a9e8f25

Please sign in to comment.