23 lines
1.1 KiB
Docker
23 lines
1.1 KiB
Docker
# Copyright © 2026 Setti Solutions S.R.L, www.setti.md. All rights reserved.
|
|
# The add-on's image: the Edge Agent image of the same commit (edge/build.sh)
|
|
# with addon-run in front, and the platform it belongs to (the devices URL,
|
|
# the command and bundle certificates), as a Hub build bakes them in.
|
|
# Built by ha-addon/build.sh, one image per arch; the Supervisor pulls it.
|
|
ARG EDGE_IMAGE
|
|
FROM ${EDGE_IMAGE}
|
|
ARG VERSION ARCH REVISION
|
|
LABEL io.hass.version="${VERSION}" io.hass.type="addon" io.hass.arch="${ARCH}" \
|
|
org.opencontainers.image.revision="${REVISION}"
|
|
# bundles.pem is optional (no bundle key: the agent plans with its flat price);
|
|
# devices-ca.pem too (the direct path, docs/direct-link.md).
|
|
COPY addon.env commands.pem bundles.pem* devices-ca.pem* /etc/cantabile/
|
|
COPY addon-run /usr/local/bin/addon-run
|
|
# Cantabile's device profiles (hub/profiles, copied in by build.sh): the
|
|
# agent proposes a mapping from them (propose.py).
|
|
COPY profiles/ /usr/share/cantabile/profiles/
|
|
# addon-run starts as root (it reads Home Assistant's instance id) and runs
|
|
# the agent as uid 10001.
|
|
USER root
|
|
ENTRYPOINT ["addon-run"]
|
|
CMD []
|