Skip to content

Commit

Permalink
Merge pull request #145 from QiWang19/set_env
Browse files Browse the repository at this point in the history
Add env to stage
  • Loading branch information
openshift-merge-robot authored Oct 18, 2019
2 parents 3ca94a1 + d13d534 commit dbd706c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func NewStages(node *parser.Node, b *Builder) (Stages, error) {
Builder: &Builder{
Args: b.Args,
AllowedArgs: b.AllowedArgs,
Env: b.Env,
},
Node: root,
})
Expand Down Expand Up @@ -436,7 +437,7 @@ func (b *Builder) FromImage(image *docker.Image, node *parser.Node) error {
SplitChildren(node, command.From)

b.RunConfig = *image.Config
b.Env = b.RunConfig.Env
b.Env = append(b.Env, b.RunConfig.Env...)
b.RunConfig.Env = nil

// Check to see if we have a default PATH, note that windows won't
Expand Down

0 comments on commit dbd706c

Please sign in to comment.