Update dockerfile

This commit is contained in:
Jaysen 2018-11-05 23:51:09 -07:00
commit 936d376a96

View file

@ -1,9 +1,20 @@
FROM ruby:2.3
FROM ruby:2.3.8-alpine3.8
RUN gem install mailcatcher --no-rdoc --no-ri
RUN set -xe \
&& apk add --no-cache \
libstdc++ \
sqlite-libs \
&& apk add --no-cache --virtual .build-deps \
build-base \
sqlite-dev \
&& gem install mailcatcher -v 0.6.5 --no-ri --no-rdoc \
&& apk del .build-deps
# smtp (25) and ip (80) ports
EXPOSE 25 1080
# smtp port
EXPOSE 1025
CMD ["mailcatcher", "--smtp-ip=0.0.0.0", "--smtp-port=25", "--http-ip=0.0.0.0", "--http-port=1080", "-f"]
# webserver port
EXPOSE 1080
CMD ["mailcatcher", "--no-quit", "--foreground", "--ip=0.0.0.0"]