Add Dockerfile

This commit is contained in:
Paul Bowsher 2014-08-28 16:08:57 +01:00
parent eff638f920
commit 1ab18c821d
1 changed files with 20 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM ubuntu:trusty
MAINTAINER Paul Bowsher <paul.bowsher@gmail.com>
RUN apt-get update
RUN apt-get install -y sqlite3 libsqlite3-dev git build-essential
RUN apt-get install -y ruby-dev libssl-dev
RUN apt-get install -y nodejs
RUN gem install bundler --no-ri --no-rdoc
ADD . /app
WORKDIR /app
RUN bundle install
RUN bundle exec rake assets
EXPOSE 1025
EXPOSE 1080
ENTRYPOINT ["bundle", "exec", "mailcatcher", "--ip", "0.0.0.0", "-f"]