download invoiceninja.tar.gz

This commit is contained in:
Benjamin Brummer
2025-01-13 13:09:33 +00:00
parent d60bf39950
commit 029bc57fac

4
debian/Dockerfile vendored
View File

@@ -58,10 +58,10 @@ WORKDIR /var/www/html
# Setup InvoiceNinja
RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
grep -o '"browser_download_url": "[^"]*invoiceninja.tar.gz"' | \
cut -d '"' -f 4 | \
xargs curl -sL | \
tar -oxz -C /var/www/html \
tar -xz --strip-components=1 -C /var/www/html \
&& cp /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \
# File permissions
&& find /var/www/html/ -type f -exec chmod 644 {} \; \