🔧(docker) maintain a custom mime.types file

We want to add entries in the /etc/mime/types to add mapping between
extension and mimetype allowed in Drive
This commit is contained in:
Manuel Raynaud
2026-02-16 10:26:30 +01:00
parent abd055ad0f
commit 600b28825d
2 changed files with 9 additions and 1 deletions

View File

@@ -92,7 +92,10 @@ RUN apk add \
pango \ pango \
shared-mime-info shared-mime-info
RUN wget https://raw.githubusercontent.com/suitenumerique/django-lasuite/refs/heads/main/assets/conf/mime.types -O /etc/mime.types COPY ./docker/files/etc/mime.types /etc/mime.types.partial
RUN wget https://raw.githubusercontent.com/suitenumerique/django-lasuite/refs/heads/main/assets/conf/mime.types -O /etc/mime.types && \
cat /etc/mime.types.partial >> /etc/mime.types && \
rm /etc/mime.types.partial
# Copy entrypoint # Copy entrypoint
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint

View File

@@ -0,0 +1,5 @@
# File extending extension mapping with mime types.
# MIME type (lowercased) Extensions
# ============================================ ==========
application/vnd.ms-outlook msg
application/zed zed