Skip to content

Instantly share code, notes, and snippets.

@DVG
Created April 11, 2015 19:14
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 DVG/ae38b9049efc772ee200 to your computer and use it in GitHub Desktop.
Save DVG/ae38b9049efc772ee200 to your computer and use it in GitHub Desktop.
Docker
web:
build: .
command: bin/rails server --port 3000 --binding 0.0.0.0
ports:
- "5000:5000"
volumes:
- .:/code
links:
- db
db:
image: wnameless/oracle-xe-11g
ports:
- "49160:22"
- "49161:1521"
FROM ruby:2.2.1
RUN apt-get update -qq && apt-get install -y build-essential
RUN apt-get install -y libxml2-dev libxslt1-dev
RUN apt-get install -y libqt4-webkit libqt4-dev xvfb
RUN apt-get install -y nodejs
ENV APP_HOME /code
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment