支持webman、hyperf、laravel 的 php82 镜像

alfred

简介

支持webman、hyperf、laravel 的 php82 镜像,其中安装了能够提升workman性能的event扩展,PHP扩展通过pecl 和 docker-php-ext-install 进行安装,镜像内置了nginx和supervisor支持laravel 运行。

如何使用

1.webman 如何使用,项目内新建Dockerfile内容如下


FROM dockeralfred/workman-swoole:v1

WORKDIR /var/www

COPY . /var/www
RUN composer install

EXPOSE 8787

ENTRYPOINT ["php", "/var/www/start.php", "start"]

2.可以从 gitee 下载 Dockerfile 自己修改

已安装扩展

bcmath
Core
ctype
curl
date
dom
event
fileinfo
filter
gd
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
swoole
tokenizer
xlswriter
xml
xmlreader
xmlwriter
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

Dockerfile仓库

gitee 仓库

976 2 0
2个评论

Tinywan

可以直接使用这个

docker pull tinywan/docker-php-webman:8.2.17-swoole5.1

版本

# pecl info swoole
About pecl.php.net/swoole-5.1.1
===============================
Release Type          PECL-style PHP extension (source code)
Name                  swoole
Channel               pecl.php.net
Summary               Event-driven asynchronous and concurrent
                      networking engine with high performance for PHP.
Description           Event-driven asynchronous and concurrent
                      networking engine with high performance for PHP.
                       - event-driven
                       - coroutine
                       - asynchronous non-blocking
                       - multi-thread reactor
                       - multi-process worker
                       - multi-protocol
                       - millisecond timer
                       - built-in tcp/http/websocket/http2 server
                       - coroutine tcp/http/websocket client
                       - coroutine mysql client
                       - coroutine redis client
                       - coroutine read/write file system
                       - coroutine dns lookup
                       - support IPv4/IPv6/UnixSocket/TCP/UDP
                       - support SSL/TLS encrypted transmission
Maintainers           Tianfeng Han <rango@swoole.com> (lead)
                      Twosee <twosee@php.net> (developer)
                      Shen Zhe <shenzhe163@gmail.com> (developer,
                      inactive)
                      Lu Fei <lufei@php.net> (developer)
                      Bruce Dou <doubaokun@php.net> (developer)
Release Date          2023-11-26 14:25:25
Release Version       5.1.1 (stable)
API Version           5.0 (stable)
License               Apache2.0
                      (http://www.apache.org/licenses/LICENSE-2.0.html)
Release Notes         - Fixed memory leak issue in HTTP coroutine
                      client
                      - Fixed the issue of can not hook pdo_odbc
                      - Fixed the error in executing
                      socket_import_stream()
                      - Fixed the issue with
                      Context::parse_multipart_data() unable to handle
                      empty request body
                      - Fixed the issue with PostgreSQL coroutine
                      client where the parameters are not working
                      - Fixed the bug where curl crashes during
                      destruction
                      - Fixed the compatibility issue between Swoole
                      5.x and the latest version of xdebug
                      - Fixed the problem of class not found error
                      caused by coroutine switching during the process
                      of class autoloading
                      - Fixed the issue of not being able to compile
                      Swoole on OpenBSD
Required Dependencies PHP version 8.0.0
                      PEAR installer version 1.4.0 or newer
package.xml version   2.0
Last Modified         2024-04-21 10:05
Previous Installed    - None -
Version
  • 暂无评论

alfred

220
积分
0
获赞数
0
粉丝数
2024-04-19 加入
×
🔝