-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (30 loc) · 1.7 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
FROM r-base:4.0.3
RUN apt update && \
apt install -y ca-certificates && \
apt install -y openjdk-11-jdk libcurl4-openssl-dev libssl-dev libxml2-dev libudunits2-dev libfontconfig1-dev git neo4j-client && \
apt install -y --allow-downgrades libxcb1=1.14-3 libxcb-render0=1.14-3 libxcb-shm0=1.14-3 && \
apt install -y libcairo2-dev libgdal-dev pandoc pandoc-citeproc libjq-dev libxt-dev xtail && \
cd opt && \
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
tar xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs && \
rm -rf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
cd .. && \
locale-gen pt_BR.UTF-8 && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# pt_BR.UTF-8 UTF-8/pt_BR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
ENV OPENSSL_CONF=/etc/ssl/
# Install R
RUN R CMD javareconf && \
R -e "install.packages(c('data.table','dplyr','stringr','DT','rmarkdown','rkafka','rredis','ggplot2','ggrepel','tidyr','DBI'), repo='mran.microsoft.com')" && \
R -e "install.packages(c('RCurl','httr','devtools','mapview','knitr','kableExtra','htmltools','webshot','visNetwork'), repo='mran.microsoft.com')" && \
R -e "devtools::install_github('nicolewhite/RNeo4j')" && \
R -e "webshot::install_phantomjs()" && \
R -e "devtools::install_github('rstudio/leaflet')" && \
R -e "devtools::install_github('bhaskarvk/leaflet.extras')"
ENV LC_ALL pt_BR
ENV LANGUAGE pt_BR:en_US:en
ENV LC_CTYPE pt_BR.UTF-8
EXPOSE 3838