From d49cca559a99c7bc2278d4392b0a2bd400d8b1fb Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 20 May 2019 15:49:36 -0700 Subject: [PATCH] Drop "ADD --from=" (which isn't supported by Docker) --- bashbrew/go/src/bashbrew/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbrew/go/src/bashbrew/docker.go b/bashbrew/go/src/bashbrew/docker.go index dc9b195fe80114..96fb41ecf14095 100644 --- a/bashbrew/go/src/bashbrew/docker.go +++ b/bashbrew/go/src/bashbrew/docker.go @@ -150,7 +150,7 @@ func parseDockerfileMetadata(dockerfile io.Reader) (*dockerfileMetadata, error) meta.StageNames = append(meta.StageNames, stageName) meta.StageNameFroms[stageName] = from } - case "ADD", "COPY": + case "COPY": for _, arg := range fields[1:] { if !strings.HasPrefix(arg, "--") { // doesn't appear to be a "flag"; time to bail!