From ed9174ab42cbd14008e16096d7a160f3004273d2 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Thu, 7 Apr 2016 11:06:07 +1000 Subject: [PATCH] Simplify and fix docker builder --- Dockerfile | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index bec37ca..ad5e612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,10 @@ -FROM ubuntu:trusty -MAINTAINER Paul Bowsher +FROM ruby:2.3 +MAINTAINER Samuel Cochran -RUN apt-get update && apt-get install -y -q \ - build-essential \ - git \ - libssl-dev \ - libsqlite3-dev \ - nodejs \ - ruby-dev \ - sqlite3 \ - && apt-get clean \ - && rm -r /var/lib/apt/lists/* \ - && gem install bundler --no-ri --no-rdoc - -ADD . /app -WORKDIR /app - -RUN bundle install -RUN bundle exec rake assets +RUN gem install mailcatcher EXPOSE 1025 EXPOSE 1080 -ENTRYPOINT ["bundle", "exec", "mailcatcher", "-f"] +ENTRYPOINT ["mailcatcher", "-f"] CMD ["--ip", "0.0.0.0"]