diff --git a/mailcatcher/Dockerfile b/mailcatcher/Dockerfile
index f360b83..ad1eada 100644
--- a/mailcatcher/Dockerfile
+++ b/mailcatcher/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.4-alpine3.6
+FROM ruby:2.7.6-alpine3.15
 
 LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"
 
@@ -9,7 +9,7 @@ RUN set -xe \
     && apk add --no-cache --virtual .build-deps \
         build-base \
         sqlite-dev \
-    && gem install mailcatcher -v 0.8.0 --no-ri --no-rdoc \
+    && gem install mailcatcher -v 0.8.2 -N \
     && apk del .build-deps
 
 ENV HTTPPATH="/"
@@ -20,4 +20,4 @@ EXPOSE 1025
 # webserver port
 EXPOSE 1080
 
-CMD ["sh", "-c", "mailcatcher --no-quit --foreground --ip=0.0.0.0 --http-path $HTTPPATH"]
\ No newline at end of file
+CMD ["sh", "-c", "mailcatcher --no-quit --foreground --ip=0.0.0.0 --http-path $HTTPPATH"]