From ca3507656d135a258175e7a8d41e08324d45b0aa Mon Sep 17 00:00:00 2001 From: Cory Snider Date: Mon, 16 May 2022 16:47:08 -0400 Subject: [PATCH] build: allow external Dockerfile on remote context BuildKit has supported external Dockerfile on remote contexts since v0.5.0, included in Moby v19.03.0. The client side was the only missing piece. Signed-off-by: Cory Snider --- build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.go b/build/build.go index ec0d20e9..f025de59 100644 --- a/build/build.go +++ b/build/build.go @@ -1164,7 +1164,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: