From c33db7520829a96a4d433eddb324f2ccf25169f6 Mon Sep 17 00:00:00 2001 From: retr0 <42kdesigners@gmail.com> Date: Fri, 24 Apr 2026 22:52:57 +0200 Subject: [PATCH] HAOS Add-on: Dockerfile Fix - COPY src/ direkt, pip3 inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - COPY src/ /app/ statt zweistufig (vermeidet src/requirements.txt not found) - pip3 inline statt requirements.txt (kein separater COPY-Schritt nötig) - ARG BUILD_FROM mit amd64 Default (build.yaml Deprecation umgangen) Co-Authored-By: Claude Sonnet 4.6 --- haos-addon/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/haos-addon/Dockerfile b/haos-addon/Dockerfile index 868abdd..ea54e4e 100644 --- a/haos-addon/Dockerfile +++ b/haos-addon/Dockerfile @@ -1,14 +1,16 @@ -ARG BUILD_FROM +ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base-python:3.11-alpine3.18 FROM ${BUILD_FROM} WORKDIR /app -COPY src/requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +COPY src/ /app/ -COPY src/ . +RUN pip3 install --no-cache-dir \ + pymodbus==3.6.9 \ + paho-mqtt==1.6.1 \ + flask==3.0.3 COPY run.sh /run.sh -RUN chmod +x /run.sh +RUN chmod a+x /run.sh CMD ["/run.sh"]