From a0a984ac2e4503de1a76f55ece65ac0847678503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=9C=B1=20=C2=B7=20Kiki?= Date: Tue, 3 Feb 2026 14:32:39 +0800 Subject: [PATCH] [CI/Build] Remove hardcoded America/Los_Angeles timezone from Dockerfiles (#33553) Signed-off-by: carlory Co-authored-by: Claude Opus 4.5 --- docker/Dockerfile | 12 +++--------- docker/Dockerfile.nightly_torch | 8 ++------ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5a1929e50..722991197 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -97,9 +97,7 @@ ARG PYTHON_VERSION ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies including build tools -RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ - && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ - && apt-get update -y \ +RUN apt-get update -y \ && apt-get install -y --no-install-recommends \ ccache \ software-properties-common \ @@ -502,9 +500,7 @@ RUN PYTHON_VERSION_STR=$(echo ${PYTHON_VERSION} | sed 's/\.//g') && \ echo "export PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> /etc/environment # Install Python and system dependencies -RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ - && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ - && apt-get update -y \ +RUN apt-get update -y \ && apt-get install -y --no-install-recommends \ software-properties-common \ curl \ @@ -713,9 +709,7 @@ ENV UV_INDEX_STRATEGY="unsafe-best-match" # Use copy mode to avoid hardlink failures with Docker cache mounts ENV UV_LINK_MODE=copy -RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ - && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ - && apt-get update -y \ +RUN apt-get update -y \ && apt-get install -y git # We can specify the standard or nightly build of PyTorch diff --git a/docker/Dockerfile.nightly_torch b/docker/Dockerfile.nightly_torch index 87a914495..5c17d2a3a 100644 --- a/docker/Dockerfile.nightly_torch +++ b/docker/Dockerfile.nightly_torch @@ -20,9 +20,7 @@ ARG PYTHON_VERSION=3.12 ARG TARGETPLATFORM ENV DEBIAN_FRONTEND=noninteractive # Install Python and other dependencies -RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ - && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ - && apt-get update -y \ +RUN apt-get update -y \ && apt-get install -y ccache software-properties-common git curl sudo \ && for i in 1 2 3; do \ add-apt-repository -y ppa:deadsnakes/ppa && break || \ @@ -172,9 +170,7 @@ RUN PYTHON_VERSION_STR=$(echo ${PYTHON_VERSION} | sed 's/\.//g') && \ echo "export PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> /etc/environment # Install Python and other dependencies -RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ - && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \ - && apt-get update -y \ +RUN apt-get update -y \ && apt-get install -y ccache software-properties-common git curl wget sudo vim python3-pip \ && apt-get install -y ffmpeg libsm6 libxext6 libgl1 \ && for i in 1 2 3; do \