Expand chown value of COPY command
Signed-off-by: Hao Hu <hao.hu.fr@gmail.com>docker-19.03
parent
cbfb5c476a
commit
0248635269
|
@ -200,6 +200,11 @@ type CopyCommand struct {
|
|||
|
||||
// Expand variables
|
||||
func (c *CopyCommand) Expand(expander SingleWordExpander) error {
|
||||
expandedChown, err := expander(c.Chown)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
c.Chown = expandedChown
|
||||
return expandSliceInPlace(c.SourcesAndDest, expander)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue