Skip to content

Instantly share code, notes, and snippets.

@richardking
Created June 3, 2014 19:48
Show Gist options
  • Save richardking/adf87012ac39249a9c24 to your computer and use it in GitHub Desktop.
Save richardking/adf87012ac39249a9c24 to your computer and use it in GitHub Desktop.
Dockerfile bundle tmp
# FROM ubuntu
FROM richardking/ubuntu-nginx-2.1.1
# RUN apt-get update -q
# RUN apt-get install -qy nginx
# RUN apt-get install -qy curl
# RUN apt-get install -qy git
# RUN apt-get install -qy nodejs
# RUN apt-get install -qy postgresql
# RUN apt-get install -qy libpq-dev
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Install rvm, ruby, bundler
# 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.1.1"
# RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
# Copy the Gemfile and Gemfile.lock into the image.
# # Temporarily set the working directory to where they are.
WORKDIR /tmp
ADD ./Gemfile /tmp/Gemfile
ADD ./Gemfile.lock /tmp/Gemfile.lock
ADD ./.ruby-version /tmp/.ruby-version
ADD ./.ruby-gemset /tmp/.ruby-gemset
RUN /bin/bash -l -c "bundle install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment