Learn R Programming

ambiorix (version 2.2.0)

create_dockerfile: 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)

Value

NULL (invisibly)

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.

Examples

Run this code
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") 
}

Run the code above in your browser using DataLab