Last active
May 23, 2016 11:27
-
-
Save xmeta/34e0e5fa265469e2916c to your computer and use it in GitHub Desktop.
xmeta/ruby:2.2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment