From 9e7a8d3c71a4470fc96eb28556ef93cb71ed3e36 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Thu, 24 Sep 2026 19:33:09 +0530 Subject: [PATCH] fix: install tzdata-legacy only for trixie --- images/bench/Dockerfile | 5 ++++- images/custom/Containerfile | 5 ++++- images/production/Containerfile | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/images/bench/Dockerfile b/images/bench/Dockerfile index f50b97b..f5da2bf 100644 --- a/images/bench/Dockerfile +++ b/images/bench/Dockerfile @@ -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 \ diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 3419f2d..3758f5c 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -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 \ diff --git a/images/production/Containerfile b/images/production/Containerfile index 4bda412..3cabf59 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -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 \