Learn R Programming

golem (version 0.0.1.5003)

add_dockerfile: Create a Dockerfile for Shiny App

Description

Build a container containing your Shiny App. `add_dockerfile()` creates a "generalistic" Dockerfile, while `add_shinyproxy_dockerfile()` and `add_heroku_dockerfile()` creates plateform specific Dockerfile.

Usage

add_dockerfile(input = "DESCRIPTION", output = "Dockerfile",
  from = paste0("rocker/tidyverse:", R.Version()$major, ".",
  R.Version()$minor), as = NULL, port = 80, host = "0.0.0.0")

add_dockerfile_shinyproxy(input = "DESCRIPTION", output = "Dockerfile", from = paste0("rocker/tidyverse:", R.Version()$major, ".", R.Version()$minor), as = NULL)

add_dockerfile_heroku(input = "DESCRIPTION", output = "Dockerfile", from = paste0("rocker/tidyverse:", R.Version()$major, ".", R.Version()$minor), as = NULL)

Arguments

input

path to the DESCRIPTION file to use as an input.

output

name of the Dockerfile output.

from

The FROM of the Dockerfile. Default is FROM rocker/tidyverse: with `R.Version()$major` and `R.Version()$minor`.

as

The AS of the Dockerfile. Default it NULL.

port

The `options('shiny.port')` on which to run the Shiny App. Default is 80.

host

The `options('shiny.host')` on which to run the Shiny App. Default is 0.0.0.0.

Examples

Run this code
# NOT RUN {
add_dockerfile()
add_shinyproxy_dockerfile()
add_heroku_dockerfile()
# }

Run the code above in your browser using DataLab