# admin-canvas — a small, always-on write API (docs/project-plan.md Phase 13).
# Unlike digest-engine's oneshot, this is `restart: unless-stopped`: it has to be up
# whenever HA might want to push new content to a thin client's admin canvas.
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1

WORKDIR /app

# stdlib only — no requirements.txt. See server.py's module docstring for why this
# stays a plain http.server instead of pulling in a web framework.
COPY server.py ./

RUN mkdir -p /output /output/media

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