forked from mmadsen/hadleyverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
127 lines (121 loc) · 3.09 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
FROM rocker/rstudio
MAINTAINER "Carl Boettiger and Dirk Eddelbuettel" rocker-maintainers@eddelbuettel.com
## Add binaries for more CRAN packages, deb-src repositories in case we need `apt-get build-dep`
RUN echo 'deb http://debian-r.debian.net/debian-r/ unstable main' >> /etc/apt/sources.list \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys AE05705B842492A68F75D64E01BF7284B26DD379 \
&& gpg --export AE05705B842492A68F75D64E01BF7284B26DD379 | apt-key add - \
&& echo 'deb-src http://debian-r.debian.net/debian-r/ unstable main' >> /etc/apt/sources.list \
&& echo 'deb-src http://http.debian.net/debian testing main' >> /etc/apt/sources.list
## LaTeX:
## This installs inconsolata fonts used in R vignettes/manuals manually since texlive-fonts-extra is HUGE
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
aspell \
aspell-en \
ghostscript \
imagemagick \
lmodern \
texlive-fonts-recommended \
texlive-humanities \
texlive-latex-extra \
texinfo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& cd /usr/share/texlive/texmf-dist \
&& wget http://mirrors.ctan.org/install/fonts/inconsolata.tds.zip \
&& unzip inconsolata.tds.zip \
&& rm inconsolata.tds.zip \
&& echo "Map zi4.map" >> /usr/share/texlive/texmf-dist/web2c/updmap.cfg \
&& mktexlsr \
&& updmap-sys
## Install some external dependencies. 360 MB
RUN apt-get update \
&& apt-get install -y --no-install-recommends -t unstable \
build-essential \
default-jdk \
default-jre \
libcairo2-dev \
libssl-dev \
libgsl0-dev \
libmysqlclient-dev \
libpq-dev \
libsqlite3-dev \
libv8-dev \
libxcb1-dev \
libxdmcp-dev \
libxml2-dev \
libxslt1-dev \
libxt-dev \
r-cran-rgl \
r-cran-rsqlite.extfuns \
vim \
&& R CMD javareconf \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## Install the R packages. 210 MB
RUN install2.r --error \
broom \
DiagrammeR \
devtools \
dplyr \
ggplot2 \
haven \
httr \
knitr \
packrat \
pryr \
reshape2 \
rmarkdown \
rvest \
readr \
readxl \
testthat \
tidyr \
shiny \
xml2 \
## Manually install (useful packages from) the SUGGESTS list of the above packages.
## (because --deps TRUE can fail when packages are added/removed from CRAN)
&& Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("BiocInstaller")' \
&& install2.r --error \
base64enc \
Cairo \
codetools \
covr \
data.table \
downloader \
gridExtra \
gtable \
hexbin \
Hmisc \
htmlwidgets \
jpeg \
Lahman \
lattice \
lintr \
MASS \
PKI \
png \
microbenchmark \
mgcv \
mapproj \
maps \
maptools \
mgcv \
multcomp \
nlme \
nycflights13 \
quantreg \
Rcpp \
rJava \
roxygen2 \
RMySQL \
RPostgreSQL \
RSQLite \
testit \
V8 \
XML \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## httr authentication uses this port
EXPOSE 1410
ENV HTTR_LOCALHOST 0.0.0.0