Merge pull request #823 from TheNewSound/patch-2

Update Dockerfile to use ADD for downloading files, instead of RUN curl
This commit is contained in:
David Bomba
2025-10-29 16:28:18 +11:00
committed by GitHub

5
debian/Dockerfile vendored
View File

@@ -2,10 +2,11 @@ ARG PHP=8.4
FROM php:${PHP}-fpm AS prepare-app FROM php:${PHP}-fpm AS prepare-app
ADD https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz /tmp/invoiceninja.tar.gz
USER www-data USER www-data
RUN curl -sL "https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz" | \ RUN tar -xzf /tmp/invoiceninja.tar.gz -C /var/www/html \
tar -xz -C /var/www/html \
&& 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