This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 832 Bytes
FROM r-base:latest
LABEL maintainers="Vojtech Sedlak (vojtech@mozillafoundation.org), Christopher DeCairos (cade@mozillafoundation.org)"
# install R package dependencies
RUN apt-get update && apt-get install -y \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libxml2 \
libxml2-dev \
nginx \
## clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
## Install packages from CRAN
RUN R -e "install.packages(c('tidyverse', 'stringr', 'ggthemes', 'scales','shinydashboard','markdown','shinycssloaders','lubridate'), repos='http://cran.rstudio.com/')" \
## clean up
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
COPY . /app/
WORKDIR /app
CMD ["/app/shiny-server.sh"]