Skip to content

Commit

Permalink
Update installation example based on feeback from @asgrim and @TimWolla
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij committed Jan 13, 2025
1 parent 33b08e7 commit 9bfe5ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions php/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@ The latest recommended way of installing PHP extensions is through [PIE](https:/
```dockerfile
FROM %%IMAGE%%:8.2-cli

# Install PIE here (see https://github.com/php/pie/blob/main/docs/usage.md)

# Install PIE here; e.g. through using Docker
RUN export DEBIAN_FRONTEND="noninteractive"; \
set -eux; \
apt-get update; apt-get install -y --no-install-recommends unzip; \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie

# Use PIE to install extensions
RUN pie install phpredis/phpredis:^6.1 \
&& pie install xdebug/xdebug:^3.4
```
Expand Down

0 comments on commit 9bfe5ed

Please sign in to comment.