github.com/bscott/buffalo@v0.11.1/generators/docker/generator.go (about) 1 package docker 2 3 import ( 4 "github.com/gobuffalo/buffalo/meta" 5 ) 6 7 // Generator for generating a new docker file 8 type Generator struct { 9 App meta.App `json:"app"` 10 Version string `json:"version"` 11 Style string `json:"style"` 12 AsWeb bool `json:"as_web"` 13 } 14 15 // New returns a well formed set of options for generating a docker file 16 func New() Generator { 17 o := Generator{ 18 App: meta.New("."), 19 Version: "latest", 20 Style: "multi", 21 } 22 o.AsWeb = o.App.WithWebpack 23 24 return o 25 }