From a35a0be1d21d7032fb24120aab42c61d174fc680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20E=C3=9Fer?= Date: Sun, 4 Mar 2018 11:45:28 +0100 Subject: [PATCH] Fix missing MIME types for static files When running the mailman-web container with `UWSGI_STATIC_MAP=/static=/opt/mailman-web-data/static` (as suggested in https://github.com/maxking/docker-mailman#serving-static-files), the Browser receives the CSS files, but refuses to render them because of wrong MIME type (`text/plain`). Also, in the docker logs, a warning shows up that `/etc/mime.types` was not found. According to the [Alpine package index](https://pkgs.alpinelinux.org/contents?branch=edge&name=mailcap&arch=armhf&repo=main), this file is part of the `mailcap` package. Installing it in the container makes Postorius stop looking ugly again! --- web/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/Dockerfile b/web/Dockerfile index 60f1d35..77f9e4d 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -14,7 +14,7 @@ RUN set -ex \ && apk add --no-cache --virtual .build-deps gcc libc-dev linux-headers \ postgresql-dev mariadb-dev \ && apk add --no-cache --virtual .mailman-rundeps bash sassc \ - postgresql-client mysql-client py-mysqldb curl \ + postgresql-client mysql-client py-mysqldb curl mailcap \ && pip install -U django==1.11 \ && pip install mailmanclient==3.1.1 \ postorius==1.1.2 \