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 <info@worldwidecrap.nl>
This commit is contained in:
TheNewSound
2025-10-27 13:48:26 +01:00
committed by GitHub
parent 7ab9653a2a
commit f9d8cf1fee

5
debian/Dockerfile vendored
View File

@@ -4,8 +4,9 @@ FROM php:${PHP}-fpm AS prepare-app
USER www-data USER www-data
RUN curl -sL "https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz" | \ ADD https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz /tmp/invoiceninja.tar.gz
tar -xz -C /var/www/html \ 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 \ && ln -s /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \
&& php artisan storage:link \ && php artisan storage:link \
# Workaround for application updates # Workaround for application updates