-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 966 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM rocker/shiny
MAINTAINER Nicolas Matentzoglu ([email protected])
## install R package dependencies (and clean up)
RUN apt-get update && apt-get install -y gnupg2 \
libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## install packages from CRAN (and clean up)
RUN Rscript -e "install.packages(c('devtools','dplyr','tidyr','fuzzyjoin','stringr','ggthemes','quantmod','ggplot2','shinydashboard','shinythemes','data.table','stringr','plyr','DT'), repos='https://cran.rstudio.com/')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## install packages from github (and clean up)
RUN Rscript -e "devtools::install_github('rstudio/shinytest','rstudio/webdriver')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## install phantomjs
RUN Rscript -e "webdriver::install_phantomjs()"
## assume shiny app is in build folder /app2
COPY shiny/rmd /srv/shiny-server/