Add one or more instructions to a Dockerfile

addInstruction(dockerfileObject) <- value

Arguments

dockerfileObject

An object of class 'Dockerfile'

value

An object that inherits from class 'instruction' or a list of instructions

Value

Returns the modified Dockerfile object (replacement method)

Examples

the_dockerfile <- dockerfile(clean_session())
#> INFO [2019-08-20 16:43:53] Creating an R session with the following expressions: #> #> INFO [2019-08-20 16:43:54] Created Dockerfile-Object based on sessionInfo
addInstruction(the_dockerfile) <- Label(myKey = "myContent")