1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Make sure ENV instruction within build perform a commit each time

This commit is contained in:
Guillaume J. Charmes 2013-08-07 17:23:49 -07:00 committed by Michael Crosby
parent ef1d1aefa7
commit 68934878f1

View file

@ -167,9 +167,9 @@ func (b *buildFile) CmdEnv(args string) error {
if envKey >= 0 {
b.config.Env[envKey] = replacedVar
return nil
} else {
b.config.Env = append(b.config.Env, replacedVar)
}
b.config.Env = append(b.config.Env, replacedVar)
return b.commit("", b.config.Cmd, fmt.Sprintf("ENV %s", replacedVar))
}