Description Usage Arguments See Also Examples
Command to be run in the docker image during building the image.
1 |
df |
a dockerfile object from 'dockerfile()' |
cmd |
command to be run in the docker image during build |
new |
boolean indicating if the command should be added to the prior line. Useful for when breaking out lines in the docker image to skip time consuming build steps. defaults to FALSE. |
Other dockerfile: build
, cmd
,
copy
, expose
,
from
, install_r_lib_version
,
install_r_lib
, install
,
update
, write_dockerfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Start a dockerfile based off of the rocker/shiny image to generate a
# shiny server using R version 3.6.1, update all existing software
# and install git and curl. Then initialize Rstudio server
dockerfile() %>%
from("rocker/r-ver:devel") %>%
update() %>%
install("sudo","gdebi","pandoc","pandoc-citeproc",
"libcurl4-gnutls-dev","libcairo2-dev",
"libxtdev","wget") %>%
run("wget --no-verbose
https://download3.rstudio.org/ubuntu-14.04/x86_64/VERSION
-O version.txt") %>%
run("VERSION=$(cat version.txt)") %>%
run("wget --no-verbose
https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-$VERSION-amd64.deb
-O ss-latest.deb") %>%
run("gdebi -n ss-latest.deb") %>%
run("rm -f version.txt ss-latest.deb") %>%
run(". /etc/environment") %>%
install_r_lib("shiny","rmarkdown") %>%
run("cp -R /usr/local/lib/R/site-library/shiny/examples/* /srv/shiny-server/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.