chore: add multistage build to optimize the image size

This commit is contained in:
Lakhan Samani
2021-07-21 17:53:22 +05:30
parent a528fe2f26
commit 40ad01e6b7
4 changed files with 24 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ var Mgr Manager
func init() {
var db *gorm.DB
var err error
log.Println("=> from db:", constants.DB_TYPE, constants.DB_URL)
ormConfig := &gorm.Config{
NamingStrategy: schema.NamingStrategy{
TablePrefix: "yauth_",