-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (48 loc) · 2.17 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
# Base image
FROM ubuntu:16.04
MAINTAINER Paul Murrell <paul@stat.auckland.ac.nz>
# add CRAN PPA
RUN apt-get update && apt-get install -y apt-transport-https
RUN echo 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran40/' > /etc/apt/sources.list.d/cran.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# Install additional software
# R stuff
RUN apt-get update && apt-get install -y \
r-base=4.0*
# For building the report
RUN apt-get update && apt-get install -y \
xsltproc \
libxml2-dev \
libcurl4-openssl-dev \
libssl-dev \
bibtex2html \
subversion
RUN Rscript -e 'install.packages(c("knitr", "devtools"), repos="https://cran.rstudio.com/")'
RUN Rscript -e 'library(devtools); install_version("xml2", "1.2.2", repos="https://cran.rstudio.com/")'
# Tools used in the report
RUN apt-get update && apt-get install -y \
texlive-full \
fonttools \
fontconfig \
libxml2-utils
# Packages used in the report
RUN Rscript -e 'library(devtools); install_version("ggplot2", "3.3.2", repos="https://cran.rstudio.com/")'
# Package dependencies
# 'xml2' already installed
RUN Rscript -e 'library(devtools); install_version("extrafont", "0.17", repos="https://cran.rstudio.com/")'
RUN Rscript -e 'extrafont::font_import(prompt=FALSE)'
RUN Rscript -e 'library(devtools); install_version("hexView", "0.3-4", repos="https://cran.rstudio.com/")'
RUN apt-get install -y libfontconfig1-dev
RUN Rscript -e 'library(devtools); install_github("thomasp85/systemfonts")'
RUN Rscript -e 'library(devtools); install_version("devoid", "0.1.1", repos="https://cran.rstudio.com/")'
RUN Rscript -e 'library(devtools); install_version("gridBezier", "1.1-1", repos="https://cran.rstudio.com/")'
# Using COPY will update (invalidate cache) if the tar ball has been modified!
# COPY dvir_0.3-0.tar.gz /tmp/
# RUN R CMD INSTALL /tmp/dvir_0.3-0.tar.gz
RUN Rscript -e 'devtools::install_github("pmur002/dvir@v0.3-0")'
RUN apt-get install -y locales && locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV TERM dumb
# Create $HOME and directory in there for FontConfig files
RUN mkdir -p /home/user/fontconfig/conf.d
ENV HOME /home/user