镜像
ctwj/easyswoole
- 创建一个composer.json文件
{
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
}
- 安装easyswoole
docker run --rm -v ~/Program/sslh:/var/www/easyswoole ctwj/easyswoole composer require easyswoole/easyswoole=3.x
docker run --rm -v ~/Program/sslh:/var/www/easyswoole ctwj/easyswoole php /var/www/easyswoole/vendor/bin/easyswoole install
- 运行
docker run -d -p 9501:9501 -v ~/Program/sslh:/var/www/easyswoole ctwj/easyswoole
网友评论