mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Single RUN for first stage to avoid insane build times
This commit is contained in:
19
debian/Dockerfile
vendored
19
debian/Dockerfile
vendored
@@ -4,17 +4,14 @@ RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/lat
|
||||
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
|
||||
cut -d '"' -f 4 | \
|
||||
xargs curl -sL | \
|
||||
tar -xz
|
||||
|
||||
RUN ln -s ./resources/views/react/index.blade.php ./public/index.html
|
||||
|
||||
# Set permissions: directories 755, files 644
|
||||
RUN chmod -R a=r,u+w,a+X .
|
||||
|
||||
RUN php artisan storage:link
|
||||
|
||||
# Octane
|
||||
RUN php artisan octane:install --server=frankenphp
|
||||
tar -xz \
|
||||
&& ln -s ./resources/views/react/index.blade.php ./public/index.html \
|
||||
# Set permissions: directories 755, files 644
|
||||
&& chmod -R a=r,u+w,a+X . \
|
||||
# Symlink
|
||||
&& php artisan storage:link \
|
||||
# Octane
|
||||
&& php artisan octane:install --server=frankenphp
|
||||
|
||||
# ==================
|
||||
# InvoiceNinja image
|
||||
|
||||
Reference in New Issue
Block a user