# 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= \ # -t /cantabile-ha-modbus-amd64: . 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"]