Skip to content

Commit

Permalink
Merge pull request #401 from kenhys/donot-purge-ext-excessively
Browse files Browse the repository at this point in the history
Do not remove so exessively
  • Loading branch information
kenhys authored Nov 25, 2024
2 parents e77ad58 + bba4aec commit 8186b4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.template.erb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ RUN apt-get update \
&& export GEM_DIR=$(ruby -e 'puts Gem.dir') \
&& echo GEM_DIR=$GEM_DIR \
&& rm -rf $GEM_DIR/cache/*.gem \
&& find $GEM_DIR -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rf \
# Don't purge $GEM_DIR/gems/GEM/lib/GEM/ext because it might contain runtime .so (e.g json)
&& find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \
&& find $GEM_DIR -name "*.so" | xargs -r strip \
<% if is_alpine %>
&& gem install bigdecimal -v 1.4.4 \
Expand Down

0 comments on commit 8186b4c

Please sign in to comment.