[Docker] Remove hardcoded America/Los_Angeles timezone, default to UTC (#18121)

This commit is contained in:
Mohammad Miadh Angkad
2026-02-02 23:22:15 -08:00
committed by GitHub
parent 6f6b9c6e42
commit 25508d11c0
2 changed files with 2 additions and 8 deletions
+1 -5
View File
@@ -60,11 +60,8 @@ RUN --mount=type=cache,target=/var/cache/apt,id=base-apt \
# Install system dependencies (organized by category for better caching) # Install system dependencies (organized by category for better caching)
RUN --mount=type=cache,target=/var/cache/apt,id=base-apt \ RUN --mount=type=cache,target=/var/cache/apt,id=base-apt \
echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ apt-get update && apt-get install -y --no-install-recommends \
&& echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \
&& apt-get update && apt-get install -y --no-install-recommends \
# Core system utilities # Core system utilities
tzdata \
ca-certificates \ ca-certificates \
software-properties-common \ software-properties-common \
netcat-openbsd \ netcat-openbsd \
@@ -494,7 +491,6 @@ RUN --mount=type=cache,target=/var/cache/apt,id=runtime-apt \
python3.12-dev \ python3.12-dev \
wget \ wget \
# Core system utilities # Core system utilities
tzdata \
ca-certificates \ ca-certificates \
netcat-openbsd \ netcat-openbsd \
curl \ curl \
+1 -3
View File
@@ -16,9 +16,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# install dependencies # install dependencies
RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ RUN apt update -y \
&& echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \
&& apt update -y \
&& apt install -y curl \ && apt install -y curl \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& apt clean && apt clean