We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e77ad58 + bba4aec commit 8186b4cCopy full SHA for 8186b4c
Dockerfile.template.erb
@@ -116,7 +116,8 @@ RUN apt-get update \
116
&& export GEM_DIR=$(ruby -e 'puts Gem.dir') \
117
&& echo GEM_DIR=$GEM_DIR \
118
&& rm -rf $GEM_DIR/cache/*.gem \
119
- && 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)
120
+ && find $GEM_DIR -maxdepth 3 -type d -name test -or -name ext -or -name spec -or -name benchmark | xargs -r rm -rfv \
121
&& find $GEM_DIR -name "*.so" | xargs -r strip \
122
<% if is_alpine %>
123
&& gem install bigdecimal -v 1.4.4 \
0 commit comments