Skip to content

Docker PHP image running in CLI mode.

License

Notifications You must be signed in to change notification settings

bfren/docker-php

Repository files navigation

Docker PHP

GitHub release (latest by date) Docker Pulls Docker Image Size GitHub Workflow Status

Docker Repository - bfren ecosystem

PHP (7.4, 8.0, 8.1, 8.2 and 8.3) CLI with no additional packages installed.

To override values in php.ini map a php-ini.json file to root - see php-ini-sample.json.

Contents

Environment Variables

Variable Values Description Default
BF_PHP_DIR path Path to the PHP configuration directory - should not normally need to be changed. '/etc/php82'
BF_PHP_ENV 'production' or 'development' Defines which official php.ini template to use, "production" or "development". 'production'
BF_PHP_EXT space-separated string List of PHP extensions to install. blank
BF_PHP_PREFIX php82 (etc) PHP version prefix for package install - should not normally need to be changed. 'php82'

Licence

MIT

Copyright

Copyright (c) 2021-2025 bfren (unless otherwise stated)