diff --git a/vhclient/Dockerfile b/vhclient/Dockerfile index 84e8a2b..8d602a7 100644 --- a/vhclient/Dockerfile +++ b/vhclient/Dockerfile @@ -1,15 +1,27 @@ -ARG BUILD_FROM=ghcr.io/hassio-addons/base:16.3.6 +ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:6.0.3 # hadolint ignore=DL3006 FROM ${BUILD_FROM} # Copy root filesystem COPY rootfs / +# Copy Python requirements file +COPY requirements.txt /tmp/ + +# Setup base +ARG BUILD_ARCH=amd64 RUN \ - curl -sSLf -o initool.zip \ - "https://github.com/dbohdan/initool/releases/download/v1.0.0/initool-v1.0.0-9dc7574-linux-x86_64.zip" -RUN unzip /usr/bin/initool.zip -d /usr/bin -RUN rm initool.zip + pip3 install \ + --no-cache-dir \ + --prefer-binary \ + --find-links "https://wheels.home-assistant.io/alpine-3.13/${BUILD_ARCH}/" \ + -r /tmp/requirements.txt + +#RUN \ +# curl -sSLf -o initool.zip \ +# "https://github.com/dbohdan/initool/releases/download/v1.0.0/initool-v1.0.0-9dc7574-linux-x86_64.zip" +#RUN unzip /usr/bin/initool.zip -d /usr/bin +#RUN rm initool.zip # https://www.virtualhere.com/sites/default/files/usbclient/vhclient${BUILD_ARCH} RUN \ diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 55e2041..9964faf 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -1,5 +1,5 @@ name: VirtualHere Client -version: "0.1.29" +version: "0.1.30" slug: vhclient description: VirtualHere Client arch: diff --git a/vhclient/requirements.txt b/vhclient/requirements.txt new file mode 100644 index 0000000..b236063 --- /dev/null +++ b/vhclient/requirements.txt @@ -0,0 +1,2 @@ +iniparse +crudini \ No newline at end of file