Creates a Docker file to be used with the GitHub Actions (GHA) workflows distributed by rworkflows.
use_dockerfile(
save_dir = here::here(),
path = file.path(save_dir, "Dockerfile"),
base_image = construct_cont()[[1]],
force_new = FALSE,
show = FALSE,
verbose = TRUE
)
Directory to save the Docker file to.
Path to the Docker file.
Base Docker image to use.
If a Docker file already exists, overwrite it
(default: FALSE
).
Print the contents of the Docker file in the R console.
Print messages.
Path to Docker file.
path <- use_dockerfile(save_dir=tempdir())
#> Creating new Docker file ==> /tmp/RtmpT6qXye/Dockerfile