Docker构建常用PHP扩展
背景描述
为了避免每次安装各种各样的扩展,所以构建了一个比较常用扩展
地址:https://hub.docker.com/repository/docker/zhanghuizong/php-7.4.3-fpm
本人构建的常用php扩展,欢迎使用
镜像包含内容
- composer
- php常用扩展
脚本文件
php 脚本
#!/bin/bash
docker run -it --rm --name php-7.4.3-fpm-cli -v "$PWD":/tmp -w /tmp zhanghuizong/php-7.4.3-fpm:v1.0.0 php $@
将该脚本放置: /usr/local/bin/php
composer 脚本
#!/bin/bash
docker run -it --rm --name php-7.4.3-fpm-cli -v "$PWD":/tmp -w /tmp zhanghuizong/php-7.4.3-fpm:v1.0.0 composer $@
将该脚本放置: /usr/local/bin/composer
镜像PHP扩展
[PHP Modules]
- amqp
- bcmath
- calendar
- Core
- ctype
- curl
- date
- dom
- fileinfo
- filter
- ftp
- gd
- hash
- iconv
- json
- libxml
- mbstring
- mcrypt
- mongodb
- mysqlnd
- openssl
- pcntl
- pcre
- PDO
- pdo_mysql
- pdo_sqlite
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sockets
- sodium
- SPL
- sqlite3
- standard
- swoole
- tokenizer
- xdebug
- xlswriter
- xml
- xmlreader
- xmlwriter
- Zend OPcache
- zip
- zlib
[Zend Modules]
- Xdebug
- Zend OPcache