xmeta/ruby:2.2.2
FROM ubuntu:15.10
MAINTAINER xmeta "https://github.com/xmeta"
# Update aptitude with new repo
RUN apt-get update
RUN apt-get install -qq -y make g++
#RUN apt-get install -y qt5-default libqt5webkit5-dev
# Install packages for building ruby
RUN apt-get -qy install git curl zlib1g-dev build-essential
RUN apt-get -qy install libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libffi-dev libxslt-dev libxml2-dev
# Install rbenv and ruby-build
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
RUN /root/.rbenv/plugins/ruby-build/install.sh
ENV PATH /root/.rbenv/shims:/root/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh # or /etc/profile
RUN echo 'eval "$(rbenv init -)"' >> .bashrc
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
RUN rbenv install 2.2.2
RUN bash -l -c 'rbenv global 2.2.2; gem install bundler;'