-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 989 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
28
29
30
31
32
33
34
35
FROM openanalytics/r-base
MAINTAINER Luis Sano-Espinosa "[email protected]"
# system libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libssl1.0.0 \
libgeos-dev \
libgdal-dev \
libproj-dev
# basic shiny functionality
RUN R -e "install.packages(c('shiny', 'rmarkdown'), repos='https://cloud.r-project.org/')"
# basic app dependencies
RUN R -e "install.packages(c('tidyr','readxl','raster','dplyr','shiny','shinydashboard','ggplot2','leaflet','rgdal', 'plotly', 'RColorBrewer', 'scales', 'sqldf', 'magrittr', 'ggmap', 'reshape2', 'extrafont', 'maps', 'htmltools', 'stringr', 'plyr', 'readr', 'lubridate', 'gdata'))"
# copy app to the image
RUN mkdir /root/evictions
COPY ./EvictionApp /root/evictions/
COPY Rprofile.site /usr/lib/R/etc
EXPOSE 3838
CMD ["R", "-e shiny::runApp('/root/evictions')"]