diff --git a/Dockerfile b/Dockerfile index 8332832f..1cd296c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,7 @@ CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ] FROM frankenphp_base AS frankenphp_dev ENV APP_ENV=dev XDEBUG_MODE=off +ENV FRANKENPHP_CONFIG="import dev.worker.Caddyfile" RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" @@ -63,6 +64,7 @@ RUN set -eux; \ ; COPY --link frankenphp/conf.d/20-app.dev.ini $PHP_INI_DIR/app.conf.d/ +COPY --link frankenphp/dev.worker.Caddyfile /etc/caddy/dev.worker.Caddyfile CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile", "--watch" ] diff --git a/frankenphp/dev.worker.Caddyfile b/frankenphp/dev.worker.Caddyfile new file mode 100644 index 00000000..9ac24f3b --- /dev/null +++ b/frankenphp/dev.worker.Caddyfile @@ -0,0 +1,5 @@ +worker { + file ./public/index.php + env APP_RUNTIME Runtime\FrankenPhpSymfony\Runtime + watch +}