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
)

Arguments

save_dir

Directory to save the Docker file to.

path

Path to the Docker file.

base_image

Base Docker image to use.

force_new

If a Docker file already exists, overwrite it (default: FALSE).

show

Print the contents of the Docker file in the R console.

verbose

Print messages.

Value

Path to Docker file.

Examples

path <- use_dockerfile(save_dir=tempdir())
#> Creating new Docker file ==> /tmp/RtmppaN4bb/Dockerfile