Skip to content

Instantly share code, notes, and snippets.

@kevinclcn
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save kevinclcn/2b5895f7f1910a2c180f to your computer and use it in GitHub Desktop.

Select an option

Save kevinclcn/2b5895f7f1910a2c180f to your computer and use it in GitHub Desktop.
Dockerfile for rails on ubuntu 14.04 rvm
FROM ubuntu:14.04
MAINTAINER kevinclcn@gmail.com
ENV https_proxy <https proxy>
ENV http_proxy <http proxy>
ENV LANG en_US.UTF-8
RUN apt-get -qy install git curl
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 && curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -l -c "rvm install ruby-2.1.5"
RUN /bin/bash -l -c "gem install rails"
RUN apt-get install -y nodejs
ADD test /rails
RUN /bin/bash -l -c "cd /rails && bundle install"
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment