-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 1.34 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
FROM rocker/r-ver:3.6.3
MAINTAINER Alexandre Bennici "bennicialexandre@gmail.com"
# system libraries of general use
# mainly for installing sf (which requires units/rgeos/rgdal)
RUN apt-get update && apt-get install -y \
sudo \
libudunits2-dev \
libproj-dev \
libgeos-dev \
libgdal-dev \
libssl-dev \
libcurl4-openssl-dev \
libxml2 \
libxml2-dev \
git
RUN apt-get update && apt-get upgrade -y
# install dependencies of the Fao Capture popup app
RUN R -e "install.packages(c('devtools'), repos='https://cran.r-project.org/')"
RUN R -e "devtools::install_version('XML', version='3.99-0.3', repos = 'http://cran.r-project.org')"
RUN R -e "install.packages(c('R6','readr','shinycssloaders','stringr','ggplot2', 'httr','plotly','dplyr','sp','sf','rgdal','geometa','shiny','DT','shinyWidgets','jsonlite','remotes'), repos='http://cran.r-project.org')"
RUN R -e "remotes::install_github('eblondel/ows4R')"
#RUN R -e "remotes::install_github('daattali/shinycssloaders')"
RUN git -C /root/ clone https://github.com/abennici/FaoCapturePop.git && echo "OK!"
RUN mkdir -p /srv/shiny/
RUN ln -s /root/FaoCapturePop /srv/shiny/FaoCapturePop
EXPOSE 3838
RUN apt-get install -y curl
CMD ["R", "-e shiny::runApp('/srv/shiny/FaoCapturePop',port=3838,host='0.0.0.0')"]
#CMD ["R", "-e shiny::runApp('/srv/shiny/FaoCapturePop')"]