# identity — the person <-> BLE-identifier registry (docs/project-plan.md Phase 6).
# `restart: unless-stopped`, same as admin-canvas/pantry-vision.
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1

WORKDIR /app

# Not stdlib-only, unlike admin-canvas/pantry-vision: this is the first
# container-host service that's also an MQTT client (subscribes to
# smarthome/weather/current for the door-panel/kitchen-display dashboards), so it
# needs paho-mqtt. sqlite3 is stdlib, no separate DB dependency.
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY server.py ./

RUN mkdir -p /data /data/photos

CMD ["python", "server.py"]
