Files
agentbox-test/Dockerfile
T
agentbox 2cd435daf2
CI / test-and-package (push) Successful in 36s
Add cron container and per-household timezone for auto-reminders
- docker-compose.yml: meal-cron service loops send_reminders_cron.py every 60s
- send_reminders_cron.py: checks each household's local time, sends ntfy
  reminders at 10:00 (lunch) and 16:00 (dinner), guarded against duplicates
- models.py: timezone, last_lunch_reminder, last_dinner_reminder on households
- meals.py: /admin/timezone route for admins to set household timezone
- dashboard: timezone selector (20 common zones) in Account Settings
- i18n: 5 new translation keys for timezone strings
- Dockerfile: copy send_reminders_cron.py
- tests: 4 new timezone tests (admin set, non-admin denied, default UTC, auth)
- docs: updated AGENTS.md
2026-08-01 06:23:33 +00:00

25 lines
625 B
Docker

FROM python:3.13-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app.py models.py auth.py meals.py i18n.py ntfy.py send_reminders_cron.py ./
COPY templates/ templates/
COPY static/ static/
# Create persistent data directory
RUN mkdir -p /data
ENV DB_PATH=/data/meals.db
EXPOSE 5000
# Generate a default secret key at build time (override in prod)
ENV SECRET_KEY=change-me-in-production
# Run in production mode (no debug, use a WSGI server)
CMD ["flask", "--app", "app:create_app()", "run", "--host=0.0.0.0", "--port=5000"]