diff --git a/Dockerfile b/Dockerfile
index a0137f4ee..c394104a2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -118,7 +118,7 @@ ADD static/img static/img
 RUN jpegoptim static/img/**/*.jpg
 RUN optipng -clobber -quiet static/img/**/*.png
 
-RUN apt-get remove -y --auto-remove python-dev g++ libjpeg62-dev libevent-dev libldap2-dev  libsasl2-dev libpq-dev libffi-dev libgpgme11-dev nodejs jpegoptim optipng
+RUN apt-get remove -y --auto-remove python-dev g++ libjpeg62-dev libevent-dev libldap2-dev  libsasl2-dev libpq-dev libffi-dev libgpgme11-dev nodejs jpegoptim optipng w3m
 RUN apt-get autoremove -y
 RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*