You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/compile.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ make -j$(sysctl -n hw.logicalcpu)
68
68
sudo make install
69
69
```
70
70
71
-
####Compile the Go App
71
+
## Compile the Go App
72
72
73
73
You can now use the Go library and compile our Caddy build:
74
74
@@ -77,3 +77,16 @@ curl -L https://github.com/dunglas/frankenphp/archive/refs/heads/main.tar.gz | t
77
77
cd frankenphp-main/caddy/frankenphp
78
78
CGO_CFLAGS=$(php-config --includes) go build
79
79
```
80
+
81
+
### Using xcaddy
82
+
83
+
Alternatively, use [xcaddy](https://github.com/caddyserver/xcaddy) to compile FrankenPHP with [custom Caddy modules](https://caddyserver.com/docs/modules/):
The `builder` image provided by FrankenPHP contains a compiled version of libphp.
71
+
[Builders images](https://hub.docker.com/r/dunglas/frankenphp/tags?name=builder) are provided for all versions of FrankenPHP and PHP, both for Alpine and Debian.
72
+
41
73
# Enabling the Worker Mode by Default
42
74
43
75
Set the `FRANKENPHP_CONFIG` environment variable to start FrankenPHP with a worker script:
0 commit comments