Skip to content

Commit 5bf7a3d

Browse files
committed
Drop "ADD --from=" (which isn't supported by Docker)
1 parent b939318 commit 5bf7a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/src/bashbrew/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func parseDockerfileMetadata(dockerfile io.Reader) (*dockerfileMetadata, error)
150150
meta.StageNames = append(meta.StageNames, stageName)
151151
meta.StageNameFroms[stageName] = from
152152
}
153-
case "ADD", "COPY":
153+
case "COPY":
154154
for _, arg := range fields[1:] {
155155
if !strings.HasPrefix(arg, "--") {
156156
// doesn't appear to be a "flag"; time to bail!

0 commit comments

Comments
 (0)