eworkssk/php-cli

By eworkssk

Updated about 12 hours ago

PHP CLI Docker Image. Updates every Thursday. Oracle DB (OCI8) support out of the box.

Image
Languages & frameworks
Web servers
0

10K+

eworkssk/php-cli repository overview

PHP CLI Docker Image

Docker Stars Docker Pulls Docker Image Size (tag) Docker Image Version

Automatic weekly updates

⚡ PHP 8.1, 8.2, 8.3, 8.4 and 8.5 now available for both linux/amd64 and linux/arm64/v8

💡 Do you need PHP FPM instead? Check out our eworkssk/php-fpm image.

Pull

docker pull eworkssk/php-cli:latest

or for use in production environment:

docker pull eworkssk/php-cli:8.5

Usage

You don't have to pass the executable name as part of the command, only parameters. By default, image executes this command: php -m.

docker run --rm eworkssk/php-cli

To run a custom script, simply mount it into /scripts and run it!

docker run -v $(pwd):/scripts --rm eworkssk/php-cli script.php

If you need, you can override the default entrypoint:

docker run --entrypoint /path/to/executable --rm eworkssk/php-cli

Optionally, pass volume for opcache:

docker run -v my_dir:/tmp --rm eworkssk/php-cli

Configuration

PHP configuration located at /usr/local/etc/php/

List of installed PHP extensions

[PHP Modules]
bcmath
bz2
calendar
Core
csv
ctype
curl
date
decimal
dom
exif
fileinfo
filter
gd
geospatial
gettext
gnupg
hash
http
iconv
imagick
imap
intl
json
lexbor
libxml
mbstring
mysqli
mysqlnd
oci8
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_OCI
pdo_sqlite
Phar
posix
random
raphf
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
ssh2
standard
tokenizer
uri
vips
xml
xmlreader
xmlwriter
yaml
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

List of installed additional software

curl
git
ghostscript
jq
poppler-utils
rclone
ssh
unzip
zip
xz-utils

Tag summary

Content type

Image

Digest

sha256:f8daf5a46

Size

371.5 MB

Last updated

about 12 hours ago

docker pull eworkssk/php-cli