From a5d472ba89b46f455013dbdacc1d941687bcf3f1 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:47:23 +0530 Subject: [PATCH] Fix MIME type detection by adding media-types package to Docker images (#1725) * Initial plan * Add media-types package to fix MIME type detection in Docker images Co-authored-by: ankush <9079960+ankush@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ankush <9079960+ankush@users.noreply.github.com> --- images/bench/Dockerfile | 2 ++ images/custom/Containerfile | 2 ++ images/production/Containerfile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/images/bench/Dockerfile b/images/bench/Dockerfile index 1b8a92de..181a6623 100644 --- a/images/bench/Dockerfile +++ b/images/bench/Dockerfile @@ -71,6 +71,8 @@ RUN apt-get update \ tk-dev \ liblzma-dev \ file \ + # For MIME type detection + media-types \ && rm -rf /var/lib/apt/lists/* RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 208f13e3..06182d42 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -37,6 +37,8 @@ RUN useradd -ms /bin/bash frappe \ # For healthcheck wait-for-it \ jq \ + # For MIME type detection + media-types \ # NodeJS && mkdir -p ${NVM_DIR} \ && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ diff --git a/images/production/Containerfile b/images/production/Containerfile index 050fec4b..563bc763 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -34,6 +34,8 @@ RUN useradd -ms /bin/bash frappe \ # For healthcheck wait-for-it \ jq \ + # For MIME type detection + media-types \ # NodeJS && mkdir -p ${NVM_DIR} \ && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \