#kubernetes
1 messages · Page 1 of 1 (latest)
Hello! The Directory type has a function dockerBuild. So you can use that
// Build a container for the app, using the default Dockerfile
func (m *MyApp) BuildContainer(
// +optional
// +defaultPath="."
source *dagger.Directory,
) *dagger.Container {
return source.DockerBuild()
}
This 👆 allows calling:
dagger call -m github.com/your/app build
or if you're in a local checkout: dagger call build
Thanks a lot, I get it now!!