From 2618c77db0f46a55a608b5f47dd3815d35828d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Gonz=C3=A1lez?= Date: Fri, 13 Nov 2015 17:28:45 +0100 Subject: [PATCH] Use base ruby image in Dockerfile & fix watcher It seems that the watcher will not work without the --force-polling option. --- Dockerfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 294c650..6938dfd 100644 --- a/Dockerfile +++ b/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"]