forked from RVC-Boss/GPT-SoVITS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化Dockerfile分层,尽可能复用缓存;增加条件构建,可以用IMAGE_TYPE参数构建不包含额外模型的Docker镜像来减少镜像大…
…小;增加批量构建Docker镜像脚本
- Loading branch information
1 parent
028b78f
commit 2bf5e00
Showing
3 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
docs | ||
logs | ||
output | ||
reference | ||
reference | ||
SoVITS_weights | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# 获取当前日期,格式为 YYYYMMDD | ||
DATE=$(date +%Y%m%d) | ||
|
||
# 构建 full 版本的镜像 | ||
docker build --build-arg IMAGE_TYPE=full -t breakstring/gpt-sovits:latest . | ||
# 为同一个镜像添加带日期的标签 | ||
docker tag breakstring/gpt-sovits:latest breakstring/gpt-sovits:dev-$DATE | ||
|
||
# 构建 elite 版本的镜像 | ||
docker build --build-arg IMAGE_TYPE=elite -t breakstring/gpt-sovits:latest-elite . | ||
# 为同一个镜像添加带日期的标签 | ||
docker tag breakstring/gpt-sovits:latest-elite breakstring/gpt-sovits:dev-$DATE-elite |