dockerfile: do not add linked and cache paths to context sources
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-19.03
parent
db487c0cd0
commit
0cd68f6491
|
@ -144,7 +144,9 @@ func dispatchRunMounts(d *dispatchState, c *instructions.RunCommand, sources []*
|
||||||
|
|
||||||
out = append(out, llb.AddMount(target, st, mountOpts...))
|
out = append(out, llb.AddMount(target, st, mountOpts...))
|
||||||
|
|
||||||
|
if mount.From == "" {
|
||||||
d.ctxPaths[path.Join("/", filepath.ToSlash(mount.Source))] = struct{}{}
|
d.ctxPaths[path.Join("/", filepath.ToSlash(mount.Source))] = struct{}{}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue