from: Describe the base docker image to use

Description Usage Arguments Value See Also Examples

View source: R/dockerfile.R

Description

Creating a docker image in a dockerfile requires specification of the base image to be creating your new docker image off of. dockyard assumes the user is basing their image off the latest available image from rocker/r-base, but it can be changed at any time.

Usage

1
from(df, image = "rocker/r-base")

Arguments

df

a dockerfile object from 'dockerfile()'

image

Repository address in the format username/image[:tag]

Value

dockerfile

See Also

Other dockerfile: build, cmd, copy, expose, install_r_lib_version, install_r_lib, install, run, update, write_dockerfile

Examples

1
2
3
4
# Start a dockerfile based off of the rocker/shiny image to generate a
# shiny server using R version 3.6.1
dockerfile() %>%
  from("rocker/r-ver:devel")

thebioengineer/dockyard documentation built on Dec. 4, 2019, 1:44 a.m.