cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.400: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-10-30 08:26:45 +02:00
1 parent 343331d234
commit d5fbcacaa4
176 files changed
+32511 -19

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# Copyright © 2026 Setti Solutions S.R.L, www.setti.md. All rights reserved.
# The Modbus bridge add-on's image: the Hub's bridge, its Modbus code and the
# device profiles, with run.py in front (the add-on's options, MQTT from the
# Supervisor, the page). Built from the repository's root:
# docker build -f cantabile_modbus/Dockerfile --build-arg VERSION=<v> \
# -t <registry>/cantabile-ha-modbus-amd64:<v> .
FROM docker.io/library/python:3.13-alpine
ARG VERSION ARCH=amd64 REVISION
LABEL io.hass.version="${VERSION}" io.hass.type="addon" io.hass.arch="${ARCH}" \
org.opencontainers.image.revision="${REVISION}"
RUN pip install --no-cache-dir paho-mqtt==2.1.0 websocket-client==1.8.0
COPY src/modbus-bridge/cantabile_modbus.py /app/cantabile_modbus.py
COPY src/modbus-bridge/bridge.py /app/bridge.py
COPY src/profiles/*.json /app/profiles/
COPY cantabile_modbus/run.py cantabile_modbus/sim.py cantabile_modbus/ha_source.py cantabile_modbus/page.py /app/
ENTRYPOINT ["python3", "-u", "/app/run.py"]