|
@@ -204,7 +204,7 @@ func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
|
|
}
|
|
}
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
- line = strings.TrimSpace(line)
|
|
|
|
|
|
+ line = strings.Replace(strings.TrimSpace(line), " ", " ", 1)
|
|
// Skip comments and empty line
|
|
// Skip comments and empty line
|
|
if len(line) == 0 || line[0] == '#' {
|
|
if len(line) == 0 || line[0] == '#' {
|
|
continue
|
|
continue
|
|
@@ -328,7 +328,7 @@ func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
|
|
fmt.Fprintf(stdout, "===> %s\n", base.ShortId())
|
|
fmt.Fprintf(stdout, "===> %s\n", base.ShortId())
|
|
break
|
|
break
|
|
default:
|
|
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 {
|
|
if image != nil {
|