From c2c9c7bb03d6e605ceb15143dd58c14a625549d7 Mon Sep 17 00:00:00 2001 From: David Roe Date: Sat, 9 Mar 2024 02:31:33 -0800 Subject: [PATCH] Resolve dependency upgrade issues (#3) * Use pipx * Lock aiomqtt version --- ha/addon/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ha/addon/Dockerfile b/ha/addon/Dockerfile index 72ed76c..a67f7f5 100644 --- a/ha/addon/Dockerfile +++ b/ha/addon/Dockerfile @@ -2,10 +2,15 @@ ARG BUILD_FROM FROM $BUILD_FROM ARG BUILD_VERSION -RUN apk add --no-cache py3-pip -RUN pip install haco==${BUILD_VERSION} +RUN apk add --no-cache pipx +ENV PATH="${PATH}:/root/.local/bin" + +RUN pipx install haco==${BUILD_VERSION} + +# Remove one haco is either updated to support aiomqtt 2.0.0 or specifies needed version in setup.py +RUN pipx inject haco aiomqtt==1.2.1 COPY run.sh / RUN chmod a+x /run.sh -CMD [ "/run.sh" ] \ No newline at end of file +CMD [ "/run.sh" ]