Dockerfile 1.1 KB

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