mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-31 03:07:09 +01:00
11
debian/Dockerfile
vendored
11
debian/Dockerfile
vendored
@@ -1,4 +1,4 @@
|
|||||||
FROM composer:latest AS composer
|
FROM dunglas/frankenphp:1-php8.3-bookworm AS prepare-app
|
||||||
|
|
||||||
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"' | \
|
||||||
@@ -11,13 +11,6 @@ RUN ln -s ./resources/views/react/index.blade.php ./public/index.html
|
|||||||
# Set permissions: directories 755, files 644
|
# Set permissions: directories 755, files 644
|
||||||
RUN chmod -R a=r,u+w,a+X .
|
RUN chmod -R a=r,u+w,a+X .
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN composer install --no-dev --no-scripts --no-autoloader --ignore-platform-reqs
|
|
||||||
|
|
||||||
RUN composer require laravel/octane --ignore-platform-reqs
|
|
||||||
|
|
||||||
RUN composer dump-autoload --optimize
|
|
||||||
|
|
||||||
RUN php artisan storage:link
|
RUN php artisan storage:link
|
||||||
|
|
||||||
# Octane
|
# Octane
|
||||||
@@ -95,7 +88,7 @@ ENTRYPOINT ["/usr/local/bin/init.sh"]
|
|||||||
CMD ["frankenphp", "php-cli", "artisan", "octane:frankenphp"]
|
CMD ["frankenphp", "php-cli", "artisan", "octane:frankenphp"]
|
||||||
|
|
||||||
# InvoiceNinja
|
# InvoiceNinja
|
||||||
COPY --from=composer --chown=${user}:${user} /app /app
|
COPY --from=prepare-app --chown=${user}:${user} /app /app
|
||||||
|
|
||||||
# Add initialization script
|
# Add initialization script
|
||||||
COPY --chmod=0755 scripts/init.sh /usr/local/bin/init.sh
|
COPY --chmod=0755 scripts/init.sh /usr/local/bin/init.sh
|
||||||
|
|||||||
10
debian/php/php.ini
vendored
10
debian/php/php.ini
vendored
@@ -1,15 +1,15 @@
|
|||||||
[core]
|
[core]
|
||||||
# https://www.php.net/manual/en/ini.core.php
|
; https://www.php.net/manual/en/ini.core.php
|
||||||
post_max_size = 10M
|
post_max_size=10M
|
||||||
upload_max_filesize = 10M
|
upload_max_filesize=10M
|
||||||
|
|
||||||
[opcache]
|
[opcache]
|
||||||
# https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended
|
; https://www.php.net/manual/en/opcache.installation.php#opcache.installation.recommended
|
||||||
opcache.enable_cli=1
|
opcache.enable_cli=1
|
||||||
opcache.max_accelerated_files=4000
|
opcache.max_accelerated_files=4000
|
||||||
opcache.revalidate_freq=60
|
opcache.revalidate_freq=60
|
||||||
|
|
||||||
[jit]
|
[jit]
|
||||||
# https://wiki.php.net/rfc/jit_config_defaults
|
; https://wiki.php.net/rfc/jit_config_defaults
|
||||||
opcache.jit=tracing
|
opcache.jit=tracing
|
||||||
opcache.jit_buffer_size=64M
|
opcache.jit_buffer_size=64M
|
||||||
|
|||||||
Reference in New Issue
Block a user