bfren/php

By bfren

Updated about 5 hours ago

PHP image running in CLI mode.

Image

50K+

Docker PHP

GitHub release (latest by date)Docker PullsDocker Image SizeGitHub 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

VariableValuesDescriptionDefault
BF_PHP_DIRpathPath 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_EXTspace-separated stringList of PHP extensions to install.blank
BF_PHP_PREFIXphp82 (etc)PHP version prefix for package install - should not normally need to be changed.'php82'

Licence

Copyright

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

Docker Pull Command

docker pull bfren/php