Skip to content

Commit

Permalink
Merge pull request #994 from corhere/local-dockerfile-remote-context
Browse files Browse the repository at this point in the history
build: allow external Dockerfile on remote context
  • Loading branch information
tonistiigi authored Jul 29, 2022
2 parents 264451b + ca35076 commit 766653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 766653f

Please sign in to comment.