fix: install tzdata-legacy only for trixie

This commit is contained in:
Revant Nandgaonkar 2026-09-24 19:33:09 +05:30
parent db989bddfc
commit 9e7a8d3c71
3 changed files with 12 additions and 3 deletions

View File

@ -13,7 +13,6 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
# For frappe framework
ca-certificates \
tzdata-legacy \
git \
mariadb-client \
postgresql-client \
@ -78,6 +77,10 @@ RUN apt-get update \
file \
# For MIME type detection
media-types \
&& . /etc/os-release \
&& if [ "$VERSION_CODENAME" = "trixie" ]; then \
apt-get install --no-install-recommends -y tzdata-legacy; \
fi \
# Install wkhtmltopdf with patched qt
&& if [ "$(uname -m)" = "aarch64" ]; then export ARCH=arm64; fi \
&& if [ "$(uname -m)" = "x86_64" ]; then export ARCH=amd64; fi \

View File

@ -19,7 +19,6 @@ RUN useradd -u 1000 -g 0 -d /home/frappe -ms /bin/bash frappe \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
tzdata-legacy \
curl \
git \
vim \
@ -45,6 +44,10 @@ RUN useradd -u 1000 -g 0 -d /home/frappe -ms /bin/bash frappe \
jq \
# For MIME type detection
media-types \
&& . /etc/os-release \
&& if [ "$VERSION_CODENAME" = "trixie" ]; then \
apt-get install --no-install-recommends -y tzdata-legacy; \
fi \
# NodeJS
&& mkdir -p ${NVM_DIR} \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \

View File

@ -15,7 +15,6 @@ RUN useradd -u 1000 -g 0 -d /home/frappe -ms /bin/bash frappe \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
tzdata-legacy \
curl \
git \
vim \
@ -41,6 +40,10 @@ RUN useradd -u 1000 -g 0 -d /home/frappe -ms /bin/bash frappe \
jq \
# For MIME type detection
media-types \
&& . /etc/os-release \
&& if [ "$VERSION_CODENAME" = "trixie" ]; then \
apt-get install --no-install-recommends -y tzdata-legacy; \
fi \
# NodeJS
&& mkdir -p ${NVM_DIR} \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \