Commit 76e06d6
authored
Fix inotify extension installation in Dockerfile (#1308)
The original Dockerfile attempted to install the inotify extension via
PECL, but the package is not available on PECL for the current PHP
version (8.2). This caused the build to fail.
This change switches to using the system package manager (apt) to
install the php${DDEV_PHP_VERSION}-inotify package, which provides the
inotify extension for the specific PHP version in use.
This resolves the build failure and allows the Docker image to be built
successfully.
The fix involved modifying `.ddev/web-build/Dockerfile.inotify` to
replace:
```
RUN pecl install ${extension}
```
with:
```
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y php${DDEV_PHP_VERSION}-inotify
```1 parent 5e83752 commit 76e06d6
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
0 commit comments