Skip to content

Commit fc9d7ce

Browse files
committed
more optims
1 parent e722c53 commit fc9d7ce

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

frameworks/PHP/laravel/laravel-octane-frankenphp.dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ RUN mkdir -p bootstrap/cache \
1919
COPY --link deploy/conf/php.ini /usr/local/etc/php
2020

2121
RUN composer require laravel/octane guzzlehttp/guzzle --update-no-dev --no-scripts --quiet
22-
RUN php artisan optimize
22+
RUN php artisan optimize && \
23+
composer dump-autoload --classmap-authoritative
2324

2425
RUN frankenphp -v
2526

2627
EXPOSE 8080
2728

28-
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--port=8080", "--caddyfile=/app/deploy/franken/Caddyfile"]
29+
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--port=8080", "--caddyfile=/app/deploy/franken/Caddyfile", "--quiet"]

frameworks/PHP/symfony/symfony-franken.dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM dunglas/frankenphp
22

33
# add additional extensions here:
44
RUN install-php-extensions \
5+
apcu \
56
opcache \
67
pdo_pgsql \
78
zip > /dev/null
@@ -20,8 +21,11 @@ COPY --link . .
2021
ENV FRANKENPHP_CONFIG="worker /symfony/public/runtime.php"
2122
ENV APP_RUNTIME="Runtime\FrankenPhpSymfony\Runtime"
2223
#ENV CADDY_DEBUG=debug
23-
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --no-scripts --quiet
24-
RUN cp deploy/postgresql/.env . && composer dump-env prod && bin/console cache:clear
24+
RUN composer install --no-dev --no-scripts --quiet
25+
RUN cp deploy/postgresql/.env . \
26+
&& composer dump-env prod \
27+
&& bin/console cache:clear \
28+
&& composer dump-autoload --classmap-authoritative
2529

2630
EXPOSE 8080
2731

0 commit comments

Comments
 (0)