Skip to content

Instantly share code, notes, and snippets.

@dsci
Forked from konklone/Dockerfile
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsci/6a228487ea5fa4e43eaf to your computer and use it in GitHub Desktop.
Save dsci/6a228487ea5fa4e43eaf to your computer and use it in GitHub Desktop.
Rachel Dockersetup
FROM ubuntu
MAINTAINER ''
# Needed?
# turn on universe packages
#RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list
# Prepare Ubuntu and Rachel dependencies
RUN apt-get update
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 command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
RUN \curl -L https://get.rvm.io | bash -s stable
RUN /bin/bash -l -c "source /etc/profile.d/rvm.sh"
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
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 /bin/bash -l -c "rvm use 2.0 --default"
web:
build: .
command: bash --login -c "rvm use 2.0"
ports:
- "3000:3000"
- "9000:9000"
#links:
# - mongodb:mongodb
# Talk to a single Mongo container
#mongodb:
# image: mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment