Expand chown value of COPY command

Signed-off-by: Hao Hu <hao.hu.fr@gmail.com>
docker-19.03
Hao Hu 2019-04-06 10:53:05 +02:00
parent cbfb5c476a
commit 0248635269
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}