-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
27 lines (19 loc) · 806 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
24
25
26
27
FROM statwonk/shiny
MAINTAINER Christopher Peters "[email protected]"
RUN apt-get update && apt-get install -y \
libssl-dev \
ca-certificates \
libxml2-dev
RUN R --no-save -e "install.packages(c('devtools'), \
repos='http://cran.rstudio.com/')"
RUN R --no-save -e "install.packages(c('ggplot2', 'scales', \
'reshape2', 'ggthemes', 'mgcv'), \
repos='http://cran.rstudio.com/')"
RUN R --no-save -e "library(devtools); \
install_github('hadley/dplyr'); \
install_github('statwonk/openfda');"
RUN rm -rf /srv/shiny-server/* \
&& cd /srv/shiny-server/ \
&& git clone https://github.com/statwonk/openfda-dashboard.git .
EXPOSE 3838
CMD ["/usr/bin/shiny-server.sh"]