From 1aca36878c8d74bfd1b90c1d2950aa9dda56aeda Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 9 Jun 2024 12:42:49 +1000 Subject: [PATCH 1/2] Fixes for download url --- alpine/5/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alpine/5/Dockerfile b/alpine/5/Dockerfile index aa20726..63c81d6 100644 --- a/alpine/5/Dockerfile +++ b/alpine/5/Dockerfile @@ -13,8 +13,7 @@ ARG FILENAME=react-invoiceninja.tar RUN set -eux; apk add curl unzip grep # Fetch the latest release information -RUN release_info=$(curl -s "https://api.github.com/repos/${REPOSITORY}/releases/latest") && \ - download_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*'${FILENAME}'"' | cut -d '"' -f 4) && \ +RUN download_url=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | grep -o '"browser_download_url": "[^"]*react-invoiceninja.tar"' | cut -d '"' -f 4) && \ curl -LJO "$download_url" -o "/tmp/ninja.tar" # Extract Invoice Ninja From 47dba02b27db6d72c92a702fde35bb327163fe9a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 9 Jun 2024 13:31:38 +1000 Subject: [PATCH 2/2] Fixes for build --- alpine/5/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alpine/5/Dockerfile b/alpine/5/Dockerfile index 63c81d6..f86a695 100644 --- a/alpine/5/Dockerfile +++ b/alpine/5/Dockerfile @@ -12,9 +12,9 @@ ARG FILENAME=react-invoiceninja.tar RUN set -eux; apk add curl unzip grep -# Fetch the latest release information -RUN download_url=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | grep -o '"browser_download_url": "[^"]*react-invoiceninja.tar"' | cut -d '"' -f 4) && \ - curl -LJO "$download_url" -o "/tmp/ninja.tar" +RUN DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | grep -o '"browser_download_url": "[^"]*react-invoiceninja.tar"' | cut -d '"' -f 4) && \ + curl -LJO "$DOWNLOAD_URL" && \ + mv react-invoiceninja.tar /tmp/ninja.tar # Extract Invoice Ninja RUN mkdir -p /var/www/app \