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"]