Update dockerfile
This commit is contained in:
parent
00698d51a0
commit
936d376a96
1 changed files with 16 additions and 5 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue