Displays the contents of a dockerfile
object in a readable format,
showing each instruction on a new line as it would appear in an
actual Dockerfile.
Usage
# S3 method for class 'dockerfile'
print(x, ...)
See also
dockerfile()
for creating a dockerfile
object
Other dockerfile core functions:
add_dockerfile_line()
,
check_dockerfile()
,
dockerfile()
,
is_dockerfile()
Examples
# Create a new dockerfile and add a couple of instructions
df <- dockerfile() |>
dfi_from("rocker/r-ver:latest") |>
dfi_run("apt-get update")
# Print the dockerfile
print(df)
#> FROM rocker/r-ver:latest
#> RUN apt-get update