Merge pull request #385 from agonzalezro/docker-fix

Use base ruby image in Dockerfile & fix watcher
This commit is contained in:
Robert Lord 2015-11-17 15:17:50 -06:00
commit 018a6939db

View file

@ -1,12 +1,6 @@
FROM ubuntu:wily
FROM ruby:2.2.3-onbuild
RUN ln -s /usr/src/app /app # Deprecated
RUN apt-get update
RUN apt-get install -yq ruby ruby-dev build-essential git nodejs
RUN gem install --no-ri --no-rdoc bundler
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN cd /app; bundle install
ADD . /app
EXPOSE 4567
WORKDIR /app
CMD ["bundle", "exec", "middleman", "server"]
CMD ["bundle", "exec", "middleman", "server", "--force-polling"]