Merge pull request #994 from corhere/local-dockerfile-remote-context

build: allow external Dockerfile on remote context
This commit is contained in:
Tõnis Tiigi 2022-07-28 22:32:25 -07:00 committed by GitHub
commit 766653f7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1279,7 +1279,7 @@ func LoadInputs(ctx context.Context, d driver.Driver, inp Inputs, pw progress.Wr
case urlutil.IsGitURL(inp.ContextPath), urlutil.IsURL(inp.ContextPath):
if inp.DockerfilePath == "-" {
return nil, errors.Errorf("Dockerfile from stdin is not supported with remote contexts")
dockerfileReader = inp.InStream
}
target.FrontendAttrs["context"] = inp.ContextPath
default: