Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
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'))"]