Skip to content

Commit b18ea9a

Browse files
Trim ruby docker image a few Mgs (#14518)
Added `--disable-install-doc --disable-install-rdoc --disable-install-capi` to the `configure` command in `install_ruby.sh` to prevent installing documentation, which reduces the image size and build time. --- *PR created automatically by Jules for task [8743311891245901013](https://jules.google.com/task/8743311891245901013) started by @jonathanmetzman* --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 9eaf33e commit b18ea9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/base-images/base-builder/install_ruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ apt update && apt install -y $RUBY_DEPS
2222
curl -O https://cache.ruby-lang.org/pub/ruby/3.3/ruby-$RUBY_VERSION.tar.gz
2323
tar -xvf ruby-$RUBY_VERSION.tar.gz
2424
cd ruby-$RUBY_VERSION
25-
./configure
25+
./configure --disable-install-doc --disable-install-rdoc --disable-install-capi
2626
make -j$(nproc)
2727
make install
2828
cd ../

0 commit comments

Comments
 (0)