-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
38 lines (33 loc) · 1.01 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
FROM rocker/rstudio
#multithreaded make for container build time
ENV MAKEFLAGS="-j"
#default password for RStudio Server
ENV PASSWORD=supersafepassword
#nice-to-have system dependencies for R
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qqy && \
apt-get install -y --no-install-recommends --no-install-suggests \
libcairo2-dev \
libxt-dev \
libjpeg-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
zlib1g-dev \
libcurl4-openssl-dev \
libssl-dev \
libicu-dev \
make \
git \
pandoc \
libxml2-dev \
libgit2-dev
# enable multithreaded make when installing packages by default
RUN mkdir -p /home/rstudio/.R \
&& echo "MAKEFLAGS = -j" > /home/rstudio/.R/Makevars
#install devtools and ampvis2
COPY . /opt/ampvis2
RUN Rscript -e 'install.packages("devtools", Ncpus = parallel::detectCores())' \
&& Rscript -e 'devtools::install("/opt/ampvis2/", reload = FALSE, dependencies = TRUE, Ncpus = parallel::detectCores())'