Add distribution release script and registry documentation
This commit is contained in:
15
README.md
15
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user