正式构建发布命令
2026/6/10 4:10:21 网站建设 项目流程

cosyvoice 正式构建发布命令

cd/d E:\My_Dream_2026_4_7\Flower_AIdockerbuild --no-cache-tflower-ai/cosyvoice:latest .\docker\cosyvoicedockerrun--rmflower-ai/cosyvoice:latest python-c"print(open('/app/cosyvoice_server.py', encoding='utf-8').read().find('已加载克隆音色列表'))"dockertag flower-ai/cosyvoice:latest registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:cosyvoice-v1.0dockerpush registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:cosyvoice-v1.0

MuseTalk正式构建发布命令

cd/d E:\My_Dream_2026_4_7\Flower_AIdockerbuild --no-cache-tflower-ai/musetalk-service:latest .\docker\musetalkdockerrun--rm--gpusall flower-ai/musetalk-service:latest python-c"import torch;print('torch', torch.__version__, torch.cuda.is_available(), torch.version.cuda)"dockerrun--rm--gpusall flower-ai/musetalk-service:latest python-c"import mmcv;print('mmcv', mmcv.__version__);import mmdet;print('mmdet', mmdet.__version__);import mmpose;print('mmpose', mmpose.__version__)"dockerrun--rmflower-ai/musetalk-service:latesttest-f/app/server.pydockertag flower-ai/musetalk-service:latest registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0dockerpush registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0

MuseTalk RTX 5060Ti 构建命令

cd/d E:\My_Dream_2026_4_7\Flower_AIdockerbuild-tflower-ai/musetalk-service-rtx50:latest.#如果想不走缓存,确保 server.py 一定打进去:#docker build --no-cache -t flower-ai/musetalk-service-rtx50:latest .
本地快速校验镜像里 server.py 是否更新

构建后执行:

dockerrun--rmflower-ai/musetalk-service-rtx50:latest python3.10-c"from pathlib import Path; print(Path('/app/server.py').read_text(encoding='utf-8')[:500])"

或者看版本号:

dockerrun--rmflower-ai/musetalk-service-rtx50:latest python3.10-c"from pathlib import Path; text=Path('/app/server.py').read_text(encoding='utf-8'); print('version=0.2.0' in text); print('/data/human-template/' in text)"

应该输出:

True True
登录阿里云 ACR,打 tag,推送

推荐新版本:

dockertag flower-ai/musetalk-service-rtx50:latest registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-v1.0#可选:如果你仍然希望 latest 也指向新镜像:#docker tag flower-ai/musetalk-service-rtx50:latest registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-latest#推送到阿里云 ACRdockerpush registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-v1.0#可选推送 latest:dockerpush registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-latest
本地拉取验证
dockerpull registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-v1.1

再检查镜像:

dockerimage inspect registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-rtx50-v1.0

构建成功后再测:

dockerrm-fmusetalk-servicecd/d E:\My_Dream_2026_4_7\Flower_AI\docker\musetalkdockercompose up-dcurl.exe http://127.0.0.1:18005/health curl.exe-XPOST http://127.0.0.1:18005/lipsync ^-H"Content-Type: application/json"^-d"{\"taskId\":\"verify_rtx50\",\"refFileName\":\"11.jpeg\",\"audioFileName\":\"5546e9fc-72eb-41be-9146-ca1114823dfd.wav\",\"version\":\"v15\",\"bboxShift\":0,\"fps\":25}"

推送完成后,本机或客户机要注意一点:同名 tag 不等于本地一定会自动更新。 如果客户机已经有旧的 musetalk-service-v1.0 镜像,最好先删旧镜像再拉:

dockercompose downdockerrmi registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0dockerpull registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0

如果镜像被容器占用,先删容器:

dockerrm-fmusetalk-service

然后再:

dockerrmi registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0dockerpull registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:musetalk-service-v1.0

comfy-gateway正式构建发布命令

cd/d E:\My_Dream_2026_4_7\Flower_AI\docker\comfy-gatewaydockerbuild --no-cache-tregistry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:comfy-gateway-v1.0.dockerpush registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:comfy-gateway-v1.0

客户机:

dockerrm-fcomfy-gatewaydockerimagermregistry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:comfy-gateway-v1.0dockerpull registry.cn-hangzhou.aliyuncs.com/flower_shine_raod/flower_shine_raod_repository:comfy-gateway-v1.0cd/d E:\Aflower\dockerdockercompose up-dcomfy-gateway

然后再测:

curl-vhttp://127.0.0.1:18189/healthcurl-vhttp://127.0.0.1:18189/upstream/healthcurl-v-H"X-Flower-Internal-Token: 78ca43f419dbc2a877b5663a70bba71e0b1ba75555b161bc1541300d8e78bca4"http://127.0.0.1:18189/system_stats

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询