Skip to content

Commit

Permalink
Drop "ADD --from=" (which isn't supported by Docker)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 5, 2019
1 parent 239c52e commit d49cca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bashbrew/go/src/bashbrew/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit d49cca5

Please sign in to comment.