Add distribution release script and registry documentation

This commit is contained in:
chaos
2026-03-17 00:23:16 +08:00
parent 04ed3fb67a
commit 7dc9849e85
2 changed files with 43 additions and 0 deletions

View File

@@ -38,3 +38,18 @@ docker build -t vox-fast -f Dockerfile.fast .
# 3. 运行
docker run -p 1995:1995 -v $(pwd)/data.db:/app/data.db vox-fast
```
### 4. 发布与分发 (镜像分发模式)
如果您想让其他用户像下载标准镜像一样直接使用:
```bash
# 1. 运行发布脚本(执行本地编译 + 镜像打包)
./release.sh
# 2. 推送到您的 Gitea 注册表
docker push gitea.qxy1828.com/chaos/vox:latest
```
用户端只需:
```bash
docker pull gitea.qxy1828.com/chaos/vox:latest
docker run -p 1995:1995 -v /path/to/data.db:/app/data.db gitea.qxy1828.com/chaos/vox:latest
```