From df3c751f2ded4bfb0219836402c72302693511f5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 8 May 2023 13:53:40 -0700 Subject: [PATCH] ha: fix missing env --- ha_addon/Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ha_addon/Dockerfile b/ha_addon/Dockerfile index 68eb9e3df..7a15f9a82 100755 --- a/ha_addon/Dockerfile +++ b/ha_addon/Dockerfile @@ -2,16 +2,19 @@ ARG BASHIO_VERSION=0.14.3 ARG TEMPIO_VERSION=2021.09.0 FROM koush/scrypted:beta +ARG BASHIO_VERSION +ARG TEMPIO_VERSION + # Install Nginx and a set of Home Assistant add-on tools RUN \ - case "$(uname -m)" in \ - x86_64) BUILD_ARCH='amd64';; \ - armv7l) BUILD_ARCH='armhf';; \ - aarch64) BUILD_ARCH='aarch64';; \ + set -x \ + && case "$(uname -m)" in \ + x86_64) TEMPIO_ARCH='amd64';; \ + armv7l) TEMPIO_ARCH='armhf';; \ + aarch64) TEMPIO_ARCH='aarch64';; \ \ *) echo "Your system architecture isn't supported."; exit 1 ;; \ esac \ - set -x \ && apt-get update && apt-get install -y --no-install-recommends \ bash \ jq \ @@ -26,7 +29,7 @@ RUN \ && mkdir -p /etc/services.d \ \ && curl -L -f -s -o /usr/bin/tempio \ - "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \ + "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${TEMPIO_ARCH}" \ && chmod a+x /usr/bin/tempio \ \ && mkdir -p /usr/src/bashio \