From f00be01cafd2adf2388e40a13ddda4d92e723343 Mon Sep 17 00:00:00 2001 From: fermayo Date: Thu, 4 Sep 2014 12:59:30 +0200 Subject: [PATCH] added Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..2908508ca42 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:trusty + +RUN apt-get update +RUN apt-get install -yq ruby ruby-dev build-essential +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"] \ No newline at end of file