mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-02-03 20:57:12 +01:00
download invoiceninja.tar.gz
This commit is contained in:
4
debian/Dockerfile
vendored
4
debian/Dockerfile
vendored
@@ -58,10 +58,10 @@ WORKDIR /var/www/html
|
|||||||
|
|
||||||
# Setup InvoiceNinja
|
# Setup InvoiceNinja
|
||||||
RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
|
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 | \
|
cut -d '"' -f 4 | \
|
||||||
xargs curl -sL | \
|
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 \
|
&& cp /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \
|
||||||
# File permissions
|
# File permissions
|
||||||
&& find /var/www/html/ -type f -exec chmod 644 {} \; \
|
&& find /var/www/html/ -type f -exec chmod 644 {} \; \
|
||||||
|
|||||||
Reference in New Issue
Block a user