Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions frameworks/PHP/laravel/laravel-octane-frankenphp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ RUN mkdir -p bootstrap/cache \
COPY --link deploy/conf/php.ini /usr/local/etc/php

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

RUN frankenphp -v

EXPOSE 8080

ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--port=8080", "--caddyfile=/app/deploy/franken/Caddyfile"]
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--port=8080", "--caddyfile=/app/deploy/franken/Caddyfile", "--quiet"]
2 changes: 1 addition & 1 deletion frameworks/PHP/php/deploy/franken/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ route {
}

respond 404
}
}
1 change: 1 addition & 0 deletions frameworks/PHP/symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"ext-ctype": "*",
"ext-iconv": "*",
"ext-mbstring": "*",
"runtime/frankenphp-symfony": "*",
"symfony/console": "^7",
"symfony/dotenv": "^7",
"symfony/flex": "^2",
Expand Down
11 changes: 9 additions & 2 deletions frameworks/PHP/symfony/symfony-franken.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM dunglas/frankenphp

# add additional extensions here:
RUN install-php-extensions \
apcu \
opcache \
pdo_pgsql \
zip > /dev/null
Expand All @@ -11,14 +12,20 @@ COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/compose
COPY --link deploy/Caddyfile /etc/caddy/Caddyfile
COPY --link deploy/conf/php.ini /usr/local/etc/php/

RUN echo "opcache.preload=/symfony/var/cache/prod/App_KernelProdContainer.preload.php" >> /usr/local/etc/php/php.ini && \
echo "opcache.preload_user=root" >> /usr/local/etc/php/php.ini

WORKDIR /symfony
COPY --link . .

ENV FRANKENPHP_CONFIG="worker /symfony/public/runtime.php"
ENV APP_RUNTIME="Runtime\FrankenPhpSymfony\Runtime"
#ENV CADDY_DEBUG=debug
RUN composer require runtime/frankenphp-symfony --update-no-dev --no-scripts --quiet
RUN cp deploy/postgresql/.env . && composer dump-env prod && bin/console cache:clear
RUN composer install --no-dev --no-scripts --quiet
RUN cp deploy/postgresql/.env . \
&& composer dump-env prod \
&& bin/console cache:clear \
&& composer dump-autoload --classmap-authoritative

EXPOSE 8080

Expand Down