From a9beb4829b8892dc3095aec8db586a9f02536905 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 15 Mar 2023 16:36:22 -0700 Subject: [PATCH] Update the Dockerfile so that it will use a newer version, `4.11.1`. --- Dockerfile.template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.template b/Dockerfile.template index c62564e5..cd5f9da4 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,12 +1,14 @@ FROM balenalib/%%BALENA_MACHINE_NAME%%-debian -RUN install_packages dnsmasq wireless-tools +RUN install_packages dnsmasq wireless-tools unzip WORKDIR /usr/src/app -ARG VERSION="4.4.0" -RUN curl -Ls "https://github.com/balena-io/wifi-connect/releases/download/v$VERSION/wifi-connect-v$VERSION-linux-%%BALENA_ARCH%%.tar.gz" \ - | tar -xvz -C /usr/src/app/ +ARG VERSION="4.11.1" +RUN curl -Ls -o /tmp/wifi-connect.zip \ + "https://github.com/balena-io/wifi-connect/releases/download/v$VERSION/wifi-connect-v$VERSION-linux-%%BALENA_ARCH%%.zip" && \ + unzip -o /tmp/wifi-connect.zip -d /usr/src/app && \ + rm /tmp/wifi-connect.zip COPY scripts/start.sh .