Skip to content

Instantly share code, notes, and snippets.

@solars
Last active December 17, 2015 08:11
Show Gist options
  • Save solars/62eeae2f86ab6ec3fa35 to your computer and use it in GitHub Desktop.
Save solars/62eeae2f86ab6ec3fa35 to your computer and use it in GitHub Desktop.
app:
build: .
command: bundle exec rails server -p 3000 -b 0.0.0.0
environment:
RACK_ENV: development
RAILS_ENV: development
ports:
- "3000:3000"
volumes:
- .:/app
FROM ruby:2.2
RUN apt-get update && apt-get install -y \
build-essential
RUN mkdir -p /app
WORKDIR /app
$ docker-compose build
$ docker-compose run app bundle install
$ docker-compose run app bundle exec rails
bundler: command not found: rails
Install missing gem executables with 'bundle install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment