Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (27 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM openanalytics/r-shiny | |
| MAINTAINER Tim M.Schendzielorz "tim.schendzielorz@googlemail.com" | |
| # Install dependency libraries | |
| RUN apt-get update && apt-get install -y \ | |
| libxml2-dev \ | |
| libudunits2-dev \ | |
| libssh2-1-dev \ | |
| libcurl4-openssl-dev \ | |
| libsasl2-dev \ | |
| libv8-dev\ | |
| # following libs not installed as no Database connection needed | |
| #libmariadbd-dev \ | |
| #libmariadb-client-lgpl-dev \ | |
| #unixodbc-dev \ | |
| #libpq-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # install needed R packages | |
| RUN R -e "install.packages(c('tidyverse', 'flexdashboard', 'knitr', 'plotly', 'shiny'), dependencies = TRUE, repo='http://cran.r-project.org')" | |
| # make directory and copy Rmarkdown flexdashboard file in it | |
| RUN mkdir -p /bin | |
| COPY dashboard_example.Rmd /bin/dashboard_example.Rmd | |
| # make all app files readable (solves issue when dev in Windows, but building in Ubuntu) | |
| RUN chmod -R 755 /bin | |
| # expose port on Docker container | |
| EXPOSE 3838 | |
| # run flexdashboard as localhost and on exposed port in Docker container | |
| CMD ["R", "-e", "rmarkdown::run('/bin/dashboard_example.Rmd', shiny_args = list(port = 3838, host = '0.0.0.0'))"] |