docker安装hyperf环境

docker pull hyperf/hyperf:7.4-alpine-v3.11-swoole
docker run --name partjob -v d:/code/parttimejob:/home -p 9501:9501 -it --privileged -u root --entrypoint /bin/sh hyperf/hyperf:7.4-alpine-v3.11-swoole

docker exec -it partjob bash

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer

cd /home
composer insstall

php bin/hyperf.php start

评论