mirror of
https://github.com/moparisthebest/mailcatcher
synced 2025-01-07 19:57:59 -05:00
Simplify and fix docker builder
This commit is contained in:
parent
4dcf7776aa
commit
ed9174ab42
24
Dockerfile
24
Dockerfile
@ -1,26 +1,10 @@
|
|||||||
FROM ubuntu:trusty
|
FROM ruby:2.3
|
||||||
MAINTAINER Paul Bowsher <paul.bowsher@gmail.com>
|
MAINTAINER Samuel Cochran <sj26@sj26.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y -q \
|
RUN gem install mailcatcher
|
||||||
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
|
|
||||||
|
|
||||||
EXPOSE 1025
|
EXPOSE 1025
|
||||||
EXPOSE 1080
|
EXPOSE 1080
|
||||||
|
|
||||||
ENTRYPOINT ["bundle", "exec", "mailcatcher", "-f"]
|
ENTRYPOINT ["mailcatcher", "-f"]
|
||||||
CMD ["--ip", "0.0.0.0"]
|
CMD ["--ip", "0.0.0.0"]
|
||||||
|
Loading…
Reference in New Issue
Block a user