Last active
August 29, 2015 13:57
-
-
Save tcnksm/9389116 to your computer and use it in GitHub Desktop.
Example of rbdock, https://github.com/tcnksm/rbdock
This file contains hidden or 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 | |
# Install basic packages | |
RUN apt-get update | |
RUN apt-get install -y build-essential wget curl git | |
RUN apt-get install -y zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev | |
RUN apt-get install -y sqlite3 libsqlite3-dev | |
RUN apt-get clean | |
# Install ruby-build | |
RUN git clone https://github.com/sstephenson/ruby-build.git .ruby-build | |
RUN .ruby-build/install.sh | |
RUN rm -fr .ruby-build | |
# Install ruby-2.0.0-p353 | |
RUN ruby-build 2.0.0-p353 /usr/local | |
# Install bundler | |
RUN gem update --system | |
RUN gem install bundler --no-rdoc --no-ri | |
# Add Application | |
RUN mkdir /myapp | |
WORKDIR /myapp | |
ADD .rbdock_app/Gemfile /myapp/Gemfile | |
RUN bundle install | |
ADD .rbdock_app /myapp | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment