Last active
August 29, 2015 14:06
-
-
Save tzumby/0f991ecf378c4cde6083 to your computer and use it in GitHub Desktop.
Ruby Dockerfile
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
# Select Ubuntu as the base image | |
FROM ubuntu | |
MAINTAINER Razvan Draghici <tzumby@gmail.com> | |
# Update Apt | |
RUN apt-get -y update | |
RUN apt-get -y install curl git-core python-software-properties | |
# install essentials | |
RUN apt-get -y install build-essential | |
RUN apt-get install -y -q git | |
RUN apt-get install -y libssl-dev | |
# Install rbenv | |
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
RUN echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh | |
RUN echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
RUN chmod +x /etc/profile.d/rbenv.sh | |
# install ruby-build | |
RUN mkdir /usr/local/rbenv/plugins | |
RUN git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build | |
ENV RBENV_ROOT /usr/local/rbenv | |
ENV PATH $RBENV_ROOT/bin:$RBENV_ROOT/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment