mirror of https://github.com/docker/docs.git
Make sure ENV instruction within build perform a commit each time
This commit is contained in:
parent
ef1d1aefa7
commit
68934878f1
|
@ -167,9 +167,9 @@ func (b *buildFile) CmdEnv(args string) error {
|
||||||
|
|
||||||
if envKey >= 0 {
|
if envKey >= 0 {
|
||||||
b.config.Env[envKey] = replacedVar
|
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))
|
return b.commit("", b.config.Cmd, fmt.Sprintf("ENV %s", replacedVar))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue