From a5871102fd6ea09592f634d26bc2f6e9e922a8c5 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 20 Jan 2024 10:29:22 -0800 Subject: [PATCH] Use pipx --- ha/addon/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ha/addon/Dockerfile b/ha/addon/Dockerfile index 72ed76c..55c8e9c 100644 --- a/ha/addon/Dockerfile +++ b/ha/addon/Dockerfile @@ -2,10 +2,12 @@ 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} COPY run.sh / RUN chmod a+x /run.sh -CMD [ "/run.sh" ] \ No newline at end of file +CMD [ "/run.sh" ]