Merge pull request #31056 from tonistiigi/build-cache-fix
Reset stdin config before running build actions
This commit is contained in:
commit
d26cf30a60
1 changed files with 4 additions and 0 deletions
|
@ -419,6 +419,10 @@ func (b *Builder) processImageFrom(img builder.Image) error {
|
|||
onBuildTriggers := b.runConfig.OnBuild
|
||||
b.runConfig.OnBuild = []string{}
|
||||
|
||||
// Reset stdin settings as all build actions run without stdin
|
||||
b.runConfig.OpenStdin = false
|
||||
b.runConfig.StdinOnce = false
|
||||
|
||||
// parse the ONBUILD triggers by invoking the parser
|
||||
for _, step := range onBuildTriggers {
|
||||
ast, err := parser.Parse(strings.NewReader(step), &b.directive)
|
||||
|
|
Loading…
Reference in a new issue