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>
This commit is contained in:
Copilot 2025-10-21 12:47:23 +05:30 committed by GitHub
parent f9b0943923
commit a5d472ba89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -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 \

View file

@ -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 \

View file

@ -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 \