Creates an empty dockerfile
object that can be populated with Docker instructions.
Value
A dockerfile
object with the following structure:
lines
: Character vector containing Dockerfile instructionsmetadata
: List containing metadata about the Dockerfile:base_image
: Base image namepackage_manager
: Package manager type (e.g., "apt", "yum")r_version
: R version (if using a rocker image)os
: Operating system type
See also
is_dockerfile()
for checking if an object is a dockerfile,
dfi_from()
for adding a base image, &
write_dockerfile()
for writing a dockerfile to disk
Other dockerfile core functions:
add_dockerfile_line()
,
check_dockerfile()
,
is_dockerfile()
,
print.dockerfile()