Skip to contents

Create Dockerfile from

Usage

create_dockerfile(
  path = getwd(),
  base_image = "rocker/r-ver:latest",
  app_config = "default",
  mainainer = whoami::whoami()["fullname"],
  date = Sys.Date(),
  additional_r_commands = NULL,
  port = "8080"
)

Arguments

path

defaults to getwd()

base_image

base image for FROM in Dockerfile

app_config

app config, defaults to default

date

date - defaults to base::Sys.Date()

additional_r_commands

any additional r commands to include in image

maintainer

maintainer - defaults to fullname from whoami::whoami()

packages

R package dependencies returned from get_package_deps()

sysreqs

logical - should sysreqs be included in image (via get_sysreqs())

Value

invisibly returns list of package and system dependencies