SmartestHome/digest-engine/Dockerfile

27 lines
859 B
Docker

# digest-engine — the first locally-built image in the container-host stack
# (everything else in docs/project-plan.md Phase 1/9 pulls a prebuilt registry image).
#
# Runs as a oneshot: `docker compose run --rm digest-engine`, driven by the
# smart-home-digest.timer systemd timer (4x/day), not as a long-lived service.
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY run.py ./
COPY ingest/ ./ingest/
COPY synth/ ./synth/
COPY feeds/ ./feeds/
# /output holds per-run artifacts, /data holds session state written by the
# one-time interactive logins (Telegram) and the whatsapp-bridge sidecar.
# Both are bind-mounted in compose; created here so a bare `docker run` works too.
RUN mkdir -p /output /data
CMD ["python", "run.py"]