-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
80 lines (70 loc) · 1.8 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM rocker/r-ver:4.0.5
MAINTAINER Emmanuel Blondel "emmanuel.blondel@fao.org"
# system libraries for LaTeX reporting & keyring
RUN apt-get update && apt-get install -y \
sudo \
pandoc \
pandoc-citeproc \
texlive-xetex \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-formats-extra \
libsodium-dev \
libsecret-1-dev
# general system libraries
# Note: this includes rdf/redland system libraries
RUN apt-get update && apt-get install -y \
cmake \
curl \
default-jdk \
fonts-roboto \
ghostscript \
hugo \
less \
libbz2-dev \
libglpk-dev \
libgmp3-dev \
libfribidi-dev \
libharfbuzz-dev \
libhunspell-dev \
libicu-dev \
liblzma-dev \
libmagick++-dev \
libopenmpi-dev \
libpcre2-dev \
libssl-dev \
libv8-dev \
libxml2-dev \
libxslt1-dev \
libzmq3-dev \
lsb-release \
qpdf \
texinfo \
software-properties-common \
vim \
wget
RUN apt-get install -y librdf0-dev
RUN install2.r --error --skipinstalled --ncpus -1 redland
RUN apt-get install -y \
libcurl4-openssl-dev \
libgit2-dev \
libxslt-dev \
librdf0 \
redland-utils \
rasqal-utils \
raptor2-utils
# geospatial system libraries
RUN /rocker_scripts/install_geospatial.sh
# install R core package dependencies
RUN install2.r --error --skipinstalled --ncpus -1 httpuv
RUN R -e "install.packages(c('remotes','jsonlite','yaml'), repos='https://cran.r-project.org/')"
# copy app
COPY . /srv/calipseo-shiny
# install R app package dependencies
RUN R -e "source('./srv/calipseo-shiny/install.R')"
#etc dirs (for config)
RUN mkdir -p /etc/calipseo-shiny/
EXPOSE 3838
CMD ["R", "-e shiny::runApp('/srv/calipseo-shiny',port=3838,host='0.0.0.0')"]