1FROM debian:jessie 2 3# Install dependencies. We start with the basic ones require to build protoc 4# and the C++ build 5RUN apt-get update && apt-get install -y \ 6 autoconf \ 7 autotools-dev \ 8 build-essential \ 9 bzip2 \ 10 ccache \ 11 curl \ 12 gcc \ 13 git \ 14 libc6 \ 15 libc6-dbg \ 16 libc6-dev \ 17 libgtest-dev \ 18 libtool \ 19 make \ 20 parallel \ 21 time \ 22 wget \ 23 && apt-get clean 24 25# Install rvm 26RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys \ 27 409B6B1796C275462A1703113804BB82D39DC0E3 \ 28 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 29RUN \curl -sSL https://get.rvm.io | bash -s stable 30 31RUN /bin/bash -l -c "rvm install 2.3.8" 32RUN /bin/bash -l -c "rvm install 2.4.5" 33RUN /bin/bash -l -c "rvm install 2.5.1" 34RUN /bin/bash -l -c "rvm install 2.6.0" 35 36RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" 37RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" 38