Learn R Programming

containerit (version 0.6.0)

write,Dockerfile-method: Write a Dockerfile object to a dockerfile

Description

Write a Dockerfile object to a dockerfile

Usage

# S4 method for Dockerfile
write(x, file = file.path(getwd(), "Dockerfile"))

Arguments

x

Dockerfile object to be serialized

file

optional argument specifying a costum file path

Examples

Run this code
# NOT RUN {
# write a dockerfile with default parameters to temporary file and show content:
temp = tempfile()
write(dockerfile(), file=temp)
print(readLines(temp))

# }

Run the code above in your browser using DataLab