File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM ubuntu:trusty
2+
3+ RUN apt-get update && apt-get install -y \
4+ build-essential \
5+ curl \
6+ git \
7+ libssl-dev \
8+ libreadline-dev \
9+ python \
10+ zip \
11+ zlib1g-dev \
12+ && apt-get clean \
13+ && rm -rf /var/lib/apt/lists/*
14+
15+ RUN locale-gen en_US.UTF-8 \
16+ && /usr/sbin/update-locale LANG=en_US.UTF-8 \
17+ && dpkg-reconfigure -f noninteractive locales
18+
19+ RUN git clone https://github.com/rbenv/rbenv.git $HOME/.rbenv \
20+ && cd $HOME/.rbenv \
21+ && src/configure \
22+ && make -C src \
23+ && ln -s $HOME/.rbenv/bin/rbenv /usr/local/bin
24+
25+ RUN eval "$(rbenv init -)" \
26+ && git clone https://github.com/rbenv/ruby-build.git $(rbenv root)/plugins/ruby-build
27+
28+ RUN eval "$(rbenv init -)" \
29+ && git clone https://github.com/sstephenson/rbenv-default-gems.git $(rbenv root)/plugins/rbenv-default-gems \
30+ && echo 'bundler' >> $(rbenv root)/default-gems
31+
32+ RUN eval "$(rbenv init -)" \
33+ && rbenv install 1.9.3-p551
34+
35+ RUN eval "$(rbenv init -)" \
36+ && rbenv install 2.2.4
37+
38+ RUN eval "$(rbenv init -)" \
39+ && rbenv install 2.3.0
You can’t perform that action at this time.
0 commit comments