File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 13
13
route {
14
14
root * /php
15
15
16
- # FrankenPHP!
17
- @phpFiles path *.php
18
- php @phpFiles
19
-
20
- respond 404
21
- }
16
+ php_server
17
+ }
Original file line number Diff line number Diff line change 6
6
"ext-ctype" : " *" ,
7
7
"ext-iconv" : " *" ,
8
8
"ext-mbstring" : " *" ,
9
+ "runtime/frankenphp-symfony" : " *" ,
9
10
"symfony/console" : " ^7" ,
10
11
"symfony/dotenv" : " ^7" ,
11
12
"symfony/flex" : " ^2" ,
Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/compose
12
12
COPY --link deploy/Caddyfile /etc/caddy/Caddyfile
13
13
COPY --link deploy/conf/php.ini /usr/local/etc/php/
14
14
15
+ RUN echo "opcache.preload=/symfony/var/cache/prod/App_KernelProdContainer.preload.php" >> /usr/local/etc/php/php.ini && \
16
+ echo "opcache.preload_user=root" >> /usr/local/etc/php/php.ini
17
+
15
18
WORKDIR /symfony
16
19
COPY --link . .
17
20
18
21
ENV FRANKENPHP_CONFIG="worker /symfony/public/runtime.php"
19
22
ENV APP_RUNTIME="Runtime\F rankenPhpSymfony\R untime"
20
23
# ENV CADDY_DEBUG=debug
21
- RUN composer require runtime/frankenphp-symfony --update -no-dev --no-scripts --quiet
24
+ RUN composer install --optimize-autoloader --classmap-authoritative - -no-dev --no-scripts --quiet
22
25
RUN cp deploy/postgresql/.env . && composer dump-env prod && bin/console cache:clear
23
26
24
27
EXPOSE 8080
You can’t perform that action at this time.
0 commit comments