# Stdlib only (sqlite3 + argparse + csv) — no pip install needed.
FROM python:3.12-slim

WORKDIR /app
COPY schema.sql ./schema.sql
COPY src ./src

ENV MOOD_DB_PATH=/data/mood_archive.sqlite \
    MOOD_SOURCE_DB_PATH=/source/moodtracker/mood.db \
    PYTHONUNBUFFERED=1

# Long-lived service: cli.py `sync` loops on MOOD_SYNC_INTERVAL_SECONDS.
CMD ["python", "-m", "src.cli", "sync"]
