Skip to content

Commit 777c6d9

Browse files
committed
Docs for installing in Docker builds
1 parent b038d83 commit 777c6d9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/usage.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ system:
2727
sudo curl -L --output /usr/local/bin/pie https://github.com/php/pie/releases/latest/download/pie.phar && sudo chmod +x /usr/local/bin/pie
2828
```
2929

30+
### Docker installation
31+
32+
PIE is published as binary-only Docker image, so you can install it easily during your Docker build:
33+
34+
```Dockerfile
35+
COPY --from=ghcr.io/php/pie:latest-bin /pie /usr/bin/pie
36+
```
37+
38+
Instead of `latest` you can also use explicit versions like `x.y.z-bin`, `x.y-bin` or `x-bin`, depending on stability level you want to achieve.
39+
40+
> [!IMPORTANT]
41+
> Binary-only images don't include PHP runtime so you can't use them for _running_ PIE. This is just an alternative way of distributing PHAR file, you still need to satisfy PIE's runtime requirements on your own.
42+
3043
## Prerequisites for PIE
3144

3245
Running PIE requires PHP 8.1 or newer. However, you may still use PIE to install

0 commit comments

Comments
 (0)