forked from rneogy/DataExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (35 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
47 lines (35 loc) · 1.26 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:16.04
MAINTAINER Albert Lee "albert.lee@boston.gov"
# system libraries of general use
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository 'deb https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/'
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN apt-get install -y apt-transport-https
RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable
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 \
libudunits2-dev
RUN apt-get install -y r-base-core
# 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('rgdal',type='source')"
RUN R -e "install.packages('rgeos',type='source')"
RUN R -e "install.packages(c('colourpicker','spatialEco','leaflet','rjson','geojsonio','shinyBS','DT','shinyjs'))"
# copy app to the image
RUN mkdir /root/data_explorer
COPY . /root/data_explorer/
COPY Rprofile.site /usr/lib/R/etc
EXPOSE 3838
CMD ["R", "-e shiny::runApp('/root/data_explorer')"]