优化docker镜像编译流程

This commit is contained in:
孟帅
2023-06-12 10:54:53 +08:00
parent 9ec736f0bc
commit d9d257a067
4 changed files with 28 additions and 19 deletions

View File

@@ -13,6 +13,13 @@ gfcli:
output: "./temp/hotgo" # 可执行文件生成路径
extra: ""
docker:
build: "-a amd64 -s linux -p temp -ew" # 构建参数
tagPrefixes: # 该docker的标记前缀用于docker推送请替换成你自己的
- ccr.ccs.tencentyun.com/bufanyun
gen:
dao:
- link: "mysql:hotgo:hg123456.@tcp(127.0.0.1:3306)/hotgo?loc=Local&parseTime=true"
@@ -26,6 +33,7 @@ gfcli:
gJsonSupport: true
clear: false
# service: # 生成业务配置
# srcFolder: "internal/logic"
# dstFolder: "internal/service"