sets environment variables in the docker image

set_env(dockerfile, env_vars)

Arguments

dockerfile

an object of class dockerfile

env_vars

A named vector of environment variables and their values

Value

dockerfile, a specification of the contents of the dockerfile

Examples

dockerfile() %>% set_env(c("S6_VERSION" = "${S6_VERSION:-v1.21.7.0}", "S6_BEHAVIOUR_IF_STAGE_2_FAILS", "2"))
#> $ENV #> [1] "S6_VERSION=${S6_VERSION:-v1.21.7.0}" #> #> $ENV #> [1] "=S6_BEHAVIOUR_IF_STAGE_2_FAILS" #> #> $ENV #> [1] "=2" #> #> $` ` #> [1] "" #>