add dockerfile into template

This commit is contained in:
kevin
2020-11-09 18:02:16 +08:00
parent 3f389a55c2
commit cb9075b737
5 changed files with 78 additions and 70 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/logrusorgru/aurora"
"github.com/tal-tech/go-zero/core/errorx"
"github.com/tal-tech/go-zero/tools/goctl/api/gogen"
"github.com/tal-tech/go-zero/tools/goctl/docker"
modelgen "github.com/tal-tech/go-zero/tools/goctl/model/sql/gen"
rpcgen "github.com/tal-tech/go-zero/tools/goctl/rpc/generator"
"github.com/tal-tech/go-zero/tools/goctl/util"
@@ -25,6 +26,9 @@ func GenTemplates(ctx *cli.Context) error {
func() error {
return rpcgen.GenTemplates(ctx)
},
func() error {
return docker.GenTemplates(ctx)
},
); err != nil {
return err
}