use_dockerfile: Use Dockerfile

View source: R/use_dockerfile.R

use_dockerfileR Documentation

Use Dockerfile

Description

Creates a Docker file to be used with the GitHub Actions (GHA) workflows distributed by rworkflows.

Usage

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())

rworkflows documentation built on Sept. 23, 2024, 1:08 a.m.