create_dockerfile: Dockerfile

View source: R/docker.R

create_dockerfileR Documentation

Dockerfile

Description

Create the dockerfile required to run the application. The dockerfile created will install packages from RStudio Public Package Manager which comes with pre-built binaries that much improve the speed of building of Dockerfiles.

Usage

create_dockerfile(port, host = "0.0.0.0", file_path)

Arguments

port, host

Port and host to serve the application.

file_path

String. Path to file to write to.

Details

Reads the DESCRIPTION file of the project to produce the Dockerfile.

Value

NULL (invisibly)

Examples

if (interactive()) {
  create_dockerfile(port = 5000L, host = "0.0.0.0", file_path = tempfile())
  # create_dockerfile(port = 5000L, host = "0.0.0.0", file_path = "Dockerfile") 
}


ambiorix documentation built on April 3, 2025, 9:34 p.m.