Replaces the ad-hoc inline styling with a shared base template driven by CSS custom properties (light/dark palettes), a card-based two-column layout, and a persistent dark-mode toggle. Also moves quiet-hours' timezone from the container's TZ env var into a proper web UI setting (zoneinfo-backed), so it no longer needs a docker-compose.yml edit and restart to change.
20 lines
583 B
Docker
20 lines
583 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# tzdata: python:3.12-slim doesn't include it by default, so the zoneinfo
|
|
# database backing the web UI's "Timezone" setting (used by "Quiet hours")
|
|
# would have no named zones to resolve without this -- ZoneInfo() would
|
|
# raise for anything other than "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 app ./app
|
|
|
|
EXPOSE 8420
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8420"]
|