Merge pull request #82 from zach-chai/update_docker_dev

create dockerfile for dev and update compose
This commit is contained in:
Zachary Chai 2017-01-17 13:48:41 -05:00 committed by GitHub
commit 1cc0010ceb
3 changed files with 13 additions and 22 deletions

10
Dockerfile.dev Normal file
View File

@ -0,0 +1,10 @@
FROM ruby:2.3.1
# app dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
ENV RAILS_ENV=development \
APP_HOME=/usr/src/app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

View File

@ -1,20 +0,0 @@
FROM ruby:2.3.1
# app dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
ENV RAILS_ENV=production \
APP_HOME=/usr/src/app \
BIGBLUEBUTTON_ENDPOINT=http://test-install.blindsidenetworks.com/bigbluebutton/ \
BIGBLUEBUTTON_SECRET=8cd8ef52e8e101574e400365b55e11a6
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD . $APP_HOME
RUN bundle install --without development test doc --deployment --clean
RUN bundle exec rake assets:precompile --trace
CMD ["scripts/default_start.sh"]

View File

@ -1,7 +1,9 @@
version: '2'
services:
web:
build: .
build:
context: .
dockerfile: Dockerfile.dev
ports:
- '80:80'
volumes:
@ -10,7 +12,6 @@ services:
- gem_cache
expose:
- '3001'
working_dir: '/usr/src/app'
stdin_open: true
tty: true
command: bundle exec rails s -p 80 -b '0.0.0.0'