You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
505 B

10 years ago
10 years ago
10 years ago
  1. FROM ruby:2.7.6-alpine3.15
  2. LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"
  3. RUN set -xe \
  4. && apk add --no-cache \
  5. libstdc++ \
  6. sqlite-libs \
  7. && apk add --no-cache --virtual .build-deps \
  8. build-base \
  9. sqlite-dev \
  10. && gem install mailcatcher -v 0.8.2 -N \
  11. && apk del .build-deps
  12. ENV HTTPPATH="/"
  13. # smtp port
  14. EXPOSE 1025
  15. # webserver port
  16. EXPOSE 1080
  17. CMD ["sh", "-c", "mailcatcher --no-quit --foreground --ip=0.0.0.0 --http-path $HTTPPATH"]