use new image as base of next command
| ... | ... |
@@ -187,6 +187,10 @@ func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) error {
|
| 187 | 187 |
tmpImages[base.Id] = struct{}{}
|
| 188 | 188 |
|
| 189 | 189 |
fmt.Fprintf(stdout, "===> %s\n", base.ShortId()) |
| 190 |
+ |
|
| 191 |
+ // use the base as the new image |
|
| 192 |
+ image = base |
|
| 193 |
+ |
|
| 190 | 194 |
break |
| 191 | 195 |
case "copy": |
| 192 | 196 |
if image == nil {
|