19 lines
893 B
Docker
19 lines
893 B
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).
|
|
COPY addon.env commands.pem bundles.pem* /etc/cantabile/
|
|
COPY addon-run /usr/local/bin/addon-run
|
|
# 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 []
|