Skip to content

Commit

Permalink
Merge pull request #682 from benbrummer/frankenphp
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
turbo124 authored Jan 7, 2025
2 parents a71af86 + 7870b34 commit 768df3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
11 changes: 2 additions & 9 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" | \
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | \
Expand All @@ -11,13 +11,6 @@ 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 .

# 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

# Octane
Expand Down Expand Up @@ -95,7 +88,7 @@ ENTRYPOINT ["/usr/local/bin/init.sh"]
CMD ["frankenphp", "php-cli", "artisan", "octane:frankenphp"]

# InvoiceNinja
COPY --from=composer --chown=${user}:${user} /app /app
COPY --from=prepare-app --chown=${user}:${user} /app /app

# Add initialization script
COPY --chmod=0755 scripts/init.sh /usr/local/bin/init.sh
Expand Down
10 changes: 5 additions & 5 deletions debian/php/php.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[core]
# https://www.php.net/manual/en/ini.core.php
post_max_size = 10M
upload_max_filesize = 10M
; https://www.php.net/manual/en/ini.core.php
post_max_size=10M
upload_max_filesize=10M

[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.max_accelerated_files=4000
opcache.revalidate_freq=60

[jit]
# https://wiki.php.net/rfc/jit_config_defaults
; https://wiki.php.net/rfc/jit_config_defaults
opcache.jit=tracing
opcache.jit_buffer_size=64M

0 comments on commit 768df3c

Please sign in to comment.