Add label metadata to an image

set_label(dockerfile, label_vars)

Arguments

dockerfile

a specification of the contents of the dockerfile

label_vars

A named vector of labels and their values

Value

dockerfile, a specification of the contents of the dockerfile

Examples

dockerfile() %>% set_label(c("label_1"="value_1", "label_2"="value_2"))
#> $LABEL #> [1] "\"label_1\"=\"value_1\" \"label_2\"=\"value_2\"" #> #> $` ` #> [1] "" #>