mirror of
https://github.com/suitenumerique/drive.git
synced 2026-04-25 17:15:19 +02:00
🔧(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:
@@ -92,7 +92,10 @@ RUN apk add \
|
||||
pango \
|
||||
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 ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
|
||||
|
||||
5
docker/files/etc/mime.types
Normal file
5
docker/files/etc/mime.types
Normal file
@@ -0,0 +1,5 @@
|
||||
# File extending extension mapping with mime types.
|
||||
# MIME type (lowercased) Extensions
|
||||
# ============================================ ==========
|
||||
application/vnd.ms-outlook msg
|
||||
application/zed zed
|
||||
Reference in New Issue
Block a user