lunch-notifier/Dockerfile
Barely Removable 1bc07a7ad0
All checks were successful
Deploy / deploy (push) Successful in 44s
Wire up container timezone via /etc/localtime bind mount
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
2026-09-08 06:59:01 -07:00

26 lines
1 KiB
Docker

FROM python:3.12-slim
LABEL org.opencontainers.image.title="🍱 Lunch Notifier"
LABEL org.opencontainers.image.description="Kyrene de la Mariposa lunch menu → Home Assistant calendar"
LABEL org.opencontainers.image.url="http://localhost:2323"
LABEL org.opencontainers.image.icon="https://resources.finalsite.net/images/f_auto,q_auto/v1708515016/kyreneorg/caewi1dctc6afx1d8nq1/Logo_Mariposa-Mascot.png"
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
COPY scraper.py app.py ./
# Settings persist here (mount as a volume)
VOLUME ["/data"]
CMD ["python", "app.py"]