Public Repository

Last pushed: 2 years ago
Short Description
Ruby 2.0 with RVM Dockerfile
Full Description

#

Ruby with RVM Dockerfile

#

From ubuntu:latest
MAINTAINER issei126

RUN useradd -m -d /home/issei126 -s /bin/bash issei126
RUN echo "issei126:issei126" | chpasswd \
&& mkdir /home/issei126/.ssh \
&& chmod 700 /home/issei126/.ssh \
&& chown -R issei126:issei126 /home/issei126/.ssh

RUN echo "issei126 ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN sudo gpasswd -a issei126 sudo
WORKDIR /home/issei126

RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -y openssh-server git-core openssh-client curl
RUN apt-get install -y nano
RUN apt-get install -y build-essential
RUN apt-get install -y openssl libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

install RVM, Ruby, and Bundler

RUN \curl -sSL https://rvm.io/mpapis.asc | gpg --import -
RUN \curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -l -c "rvm requirements"
RUN /bin/bash -l -c "rvm install 2.0"
RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
RUN \touch .bashrc
RUN echo 'source /etc/profile.d/rvm.sh' > .bashrc

USER issei126

Docker Pull Command
Owner
issei126

Comments (0)