-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (30 loc) · 1.24 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
FROM openanalytics/r-base
MAINTAINER Benjamin Azoulay "benjamin.azoulay@ens-paris-saclay.fr"
# 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.1 \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# system library dependency for the gallicapresse app
RUN apt-get update && apt-get install -y \
libmpfr-dev \
&& rm -rf /var/lib/apt/lists/*
# basic shiny functionality
RUN R -e "install.packages(c('shiny', 'rmarkdown'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('ggplot2','plotly','stringr','Hmisc','xml2','shinythemes','htmlwidgets','httr','ngramr','dplyr','htmltools','purrr','tidyr','leaflet.extras','lubridate'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('rvest','GGally','network','igraph','ggnetwork'), repos='https://cloud.r-project.org/')"
RUN R -e "install.packages(c('shinybusy'), repos='https://cloud.r-project.org/')"
# copy the app to the image
RUN mkdir /root/gallicanet
COPY gallicanet /root/gallicanet
COPY Rprofile.site /usr/lib/R/etc/
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/root/gallicanet')"]