mirror of
https://github.com/danbulant/api_docs
synced 2026-05-20 12:48:39 +00:00
Use base ruby image in Dockerfile & fix watcher
It seems that the watcher will not work without the --force-polling option.
This commit is contained in:
parent
e9cfc6bf3c
commit
2618c77db0
1 changed files with 4 additions and 10 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue