diff --git a/pkg/container/docker.go b/pkg/container/docker.go index f8756fb..a97c73b 100644 --- a/pkg/container/docker.go +++ b/pkg/container/docker.go @@ -41,6 +41,10 @@ func NewBuilderFactory(imageName, buildContext string, imageBuilder builder.Buil if err != nil { return nil, fmt.Errorf("failed to create docker client: %w", err) } + err = os.MkdirAll(buildContext, 0755) + if err != nil { + return nil, fmt.Errorf("failed to create context directory: %w", err) + } return &BuilderFactory{ imageNameFrom: imageName, cli: cli,