forked from ImperialCollegeLondon/covid19model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (30 loc) · 980 Bytes
/
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
FROM rocker/r-base
RUN apt-get update
#RUN apt-get install -y build-essential libxml2-dev libcurl4-openssl-dev libssl-dev
RUN apt-get install -y \
r-cran-rstan \
r-cran-lubridate r-cran-dplyr r-cran-matrixstats r-cran-scales r-cran-gridextra \
r-cran-bayesplot r-cran-ggplot2 r-cran-tidyr r-cran-gdata \
r-cran-svglite r-cran-jsonlite r-cran-optparse \
fonts-open-sans \
fonts-arkpandora \
fonts-adf-verana
RUN apt-get install -y r-cran-ggpubr
RUN apt-get install -y r-cran-nortest
RUN apt-get install -y r-cran-cowplot
RUN apt-get install -y r-cran-bh
RUN Rscript -e "update.packages(.libPaths()[1])"
RUN install2.r --error --deps FALSE \
EnvStats BH ggplot2 isoband \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
WORKDIR /var/model
COPY data data/
COPY stan-models stan-models/
COPY utils utils/
COPY *.r ./
RUN mkdir results
RUN mkdir figures
RUN mkdir web
RUN touch Rplots.pdf
RUN chmod -R a+rwx data results figures web Rplots.pdf
CMD Rscript base.r base