Skip to content

Instantly share code, notes, and snippets.

@erithmetic
Last active August 29, 2015 14:25
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 erithmetic/bf39003112ca9fe03ad8 to your computer and use it in GitHub Desktop.
Save erithmetic/bf39003112ca9fe03ad8 to your computer and use it in GitHub Desktop.
myservice:
volumes:
- myservice:/app
- /var/lib/docker/gems:/usr/local/bundle
environment:
RAILS_ENV: development
myservicetest:
volumes:
- myservice:/app
- /var/lib/docker/gems:/usr/local/bundle
environment:
RAILS_ENV: test
FROM ruby:2.1.5
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle
ADD . /app
EXPOSE 5000
CMD rails s -p 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment