Description Usage Arguments See Also Examples
desctribe the script to be executed on docker image creation
1 |
df |
a dockerfile object from 'dockerfile()' |
... |
commands with arguments to be executed as a series of character vectors |
Other dockerfile: build
, copy
,
expose
, from
,
install_r_lib_version
,
install_r_lib
, install
,
run
, 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 23 24 25 | # 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, and copy in a config file
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/") %>%
expose(3838) %>%
copy("shiny-server.sh", "/usr/bin/shiny-server.sh") %>%
cmd("/usr/bin/shiny-server.sh")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.