Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
add brief section how to configure php.ini settings
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 28, 2019
1 parent 9f8ba39 commit 7065dfd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ apk add --no-cache php7.3-dev gcc g++
pecl install {extension-name}
```

### PHP ini settings

To configure extra [php.ini](https://www.php.net/manual/en/ini.php): settings, create and copy the file into docker image:


```ini
# php.ini
auto_prepend_file = /app/prepend.php
```

```Dockerfile
FROM phpearth/php:7.3-nginx

COPY php.ini $PHP_INI_DIR/conf.d/my-app.ini
```

#### Missing extension?

In case you'd need an additional extension in the PHP.earth repository, [open an issue](https://github.com/phpearth/docker-php/issues).
Expand Down

0 comments on commit 7065dfd

Please sign in to comment.