Skip to contents

Writes the output of dockerfile() to a file so it can be appended to an existing Dockerfile or included verbatim.

Usage

write_dockerfile_snippet(plan, path = "Dockerfile.sysreqs")

Arguments

plan

A sysreqr_plan.

path

Output path.

Value

path, invisibly.

Examples

plan <- check_packages("xml2", platform = "ubuntu-22.04")
write_dockerfile_snippet(plan, file.path(tempdir(), "Dockerfile.sysreqs"))