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

build: allow external Dockerfile on remote context
pull/1239/head
Tõnis Tiigi 2 years ago committed by GitHub
commit 766653f7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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): case urlutil.IsGitURL(inp.ContextPath), urlutil.IsURL(inp.ContextPath):
if inp.DockerfilePath == "-" { if inp.DockerfilePath == "-" {
return nil, errors.Errorf("Dockerfile from stdin is not supported with remote contexts") dockerfileReader = inp.InStream
} }
target.FrontendAttrs["context"] = inp.ContextPath target.FrontendAttrs["context"] = inp.ContextPath
default: default:

Loading…
Cancel
Save