-
-
Save solars/62eeae2f86ab6ec3fa35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.2 | |
RUN apt-get update && apt-get install -y \ | |
build-essential | |
RUN mkdir -p /app | |
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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