Wire up container timezone via /etc/localtime bind mount
All checks were successful
Deploy / deploy (push) Successful in 44s
All checks were successful
Deploy / deploy (push) Successful in 44s
Container defaulted to UTC (no TZ configured), so calendar_run_time and the scraper's date-of-week logic didn't match the user's local clock. Uncomments the existing /etc/localtime mount and installs tzdata so the host's zoneinfo symlink actually resolves instead of silently falling back to UTC. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013RbBoYm23muVyMZ18Ldqa6
This commit is contained in:
parent
7d2d38c848
commit
1bc07a7ad0
3 changed files with 28 additions and 2 deletions
|
|
@ -8,6 +8,13 @@ LABEL net.unraid.docker.icon="http://192.168.86.33:2323/icon.png"
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# tzdata provides /usr/share/zoneinfo, which the host's bind-mounted
|
||||
# /etc/localtime (docker-compose.yml) is typically a symlink into — without
|
||||
# it present in the image, the symlink dangles and the container silently
|
||||
# falls back to UTC.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends tzdata \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue