From f9d8cf1fee8b7b2337d2eb530d026d9cad94c520 Mon Sep 17 00:00:00 2001 From: TheNewSound Date: Mon, 27 Oct 2025 13:48:26 +0100 Subject: [PATCH] Update Dockerfile to use ADD for downloading files Replaced curl command with ADD instruction for downloading Invoice Ninja instead of RUN curl. Signed-off-by: TheNewSound --- debian/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/Dockerfile b/debian/Dockerfile index e4595bd..8985113 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -4,8 +4,9 @@ FROM php:${PHP}-fpm AS prepare-app USER www-data -RUN curl -sL "https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz" | \ - tar -xz -C /var/www/html \ +ADD https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz /tmp/invoiceninja.tar.gz +RUN tar -xzf /tmp/invoiceninja.tar.gz -C /var/www/html --strip-components=1 \ + && rm /tmp/invoiceninja.tar.gz \ && ln -s /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \ && php artisan storage:link \ # Workaround for application updates