bfren/php

By bfren

Updated 17 days ago

PHP image running in CLI mode.

Image
0

50K+

bfren/php repository overview

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, 8.3, 8.4 and 8.5) 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 (c) 2021-2026 bfren (unless otherwise stated)

Tag summary

Content type

Image

Digest

sha256:c613941bf

Size

28.3 MB

Last updated

17 days ago

Requires Docker Desktop 4.37.1 or later.