dockerfile: fix wrong context passed to build
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
8fa227c801
commit
5d457719be
|
@ -4,7 +4,6 @@ import (
|
||||||
"github.com/moby/buildkit/cache"
|
"github.com/moby/buildkit/cache"
|
||||||
"github.com/moby/buildkit/frontend"
|
"github.com/moby/buildkit/frontend"
|
||||||
"github.com/moby/buildkit/frontend/dockerfile/builder"
|
"github.com/moby/buildkit/frontend/dockerfile/builder"
|
||||||
"github.com/moby/buildkit/util/appcontext"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
)
|
)
|
||||||
|
@ -30,7 +29,7 @@ func (f *dfFrontend) Solve(ctx context.Context, llbBridge frontend.FrontendLLBBr
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if err := builder.Build(appcontext.Context(), c); err != nil {
|
if err := builder.Build(ctx, c); err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue