Skip to content
Merged
Changes from all 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
15 changes: 12 additions & 3 deletions docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,11 @@ FROM dunglas/frankenphp
# Copy your CakePHP application
COPY . /app

# Set working directory
WORKDIR /app/webroot
# FrankenPHP defaults to /app/public as document root.
# CakePHP uses webroot/ instead, so override it:
ENV SERVER_ROOT=/app/webroot

# Install dependencies if needed
# Install dependencies (composer.json lives in /app)
RUN composer install --no-dev --optimize-autoloader

# Build and run:
Expand Down Expand Up @@ -422,6 +423,14 @@ myapp.local {

:::

::: tip Local Development
For local development, you can use the built-in CakePHP development server with FrankenPHP support:
```bash
bin/cake server --frankenphp
```
This requires the `frankenphp` binary to be available in your `PATH`.
:::

::: info Why FrankenPHP?
FrankenPHP combines PHP with Caddy, providing automatic HTTPS, HTTP/3, and modern compression without needing PHP-FPM. Particularly efficient for containerized deployments.
:::
Expand Down