xref: /aosp_15_r20/external/grpc-grpc/templates/tools/dockerfile/ruby_3_0_deps.include (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1#==================
2# Ruby dependencies
3
4# Install rvm
5RUN apt-get update && apt-get install -y gnupg2 && apt-get clean
6RUN gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
7RUN \curl -sSL https://get.rvm.io | bash -s stable
8
9# Install Ruby 3.0
10RUN apt-get update && apt-get install -y procps && apt-get clean
11RUN /bin/bash -l -c "rvm install ruby-3.0.5"
12RUN /bin/bash -l -c "rvm use --default ruby-3.0.5"
13RUN /bin/bash -l -c "echo 'gem: --no-document' > ~/.gemrc"
14RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc"
15RUN /bin/bash -l -c "echo 'rvm --default use ruby-3.0.5' >> ~/.bashrc"
16RUN /bin/bash -l -c "gem install bundler --no-document"
17