mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add compatibility with contrib builder
This commit is contained in:
parent
a46fc3a59e
commit
756df27e45
1 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
|
|||
}
|
||||
return err
|
||||
}
|
||||
line = strings.TrimSpace(line)
|
||||
line = strings.Replace(strings.TrimSpace(line), " ", " ", 1)
|
||||
// Skip comments and empty line
|
||||
if len(line) == 0 || line[0] == '#' {
|
||||
continue
|
||||
|
@ -328,7 +328,7 @@ func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
|
|||
fmt.Fprintf(stdout, "===> %s\n", base.ShortId())
|
||||
break
|
||||
default:
|
||||
fmt.Fprintf(stdout, "Skipping unknown op %s\n", tmp[0])
|
||||
fmt.Fprintf(stdout, "Skipping unknown instruction %s\n", strings.ToUpper(instruction))
|
||||
}
|
||||
}
|
||||
if image != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue