Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions docs/embed.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ EMBED=/path/to/your/app ./build-static.sh

The resulting binary is the file named `frankenphp-<os>-<arch>` in the `dist/` directory.

> [!NOTE]
>
> Standalone binaries can currently be created for Linux and macOS only,
> as [static builds are not available for Windows](static.md).
> To create a Linux binary from Windows, use the Docker-based builder or [WSL](https://learn.microsoft.com/windows/wsl/).

## Using the binary

This is it! The `my-app` file (or `dist/frankenphp-<os>-<arch>` on other OSes) contains your self-contained app!
Expand Down
6 changes: 6 additions & 0 deletions docs/static.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ When possible, we recommend using glibc-based, mostly static builds.

FrankenPHP also supports [embedding the PHP app in the static binary](embed.md).

> [!NOTE]
>
> Static builds are not available for Windows: on this platform, FrankenPHP links against the official PHP binaries,
> which are included in [the provided archives](https://github.com/php/frankenphp/releases).
> To create a static Linux binary from Windows, use the Docker-based builders or [WSL](https://learn.microsoft.com/windows/wsl/).

## Linux

We provide Docker images to build static Linux binaries:
Expand Down