Dockerfile 2.02 KB
Newer Older
1
2
3
4
5
6
7
8
# Reproducible environment
# Source for the docker image registry.forgemia.inra.fr/umr-astre/covid19-mortality
# (c) 2020 Facundo Muñoz

FROM rocker/geospatial

LABEL maintainer="Facundo Muñoz facundo.munoz@cirad.fr"

9
10
11
12
13
14
15
16
17
18
19
20
# Install external dependencies

## Install MS Fonts (using Arial for the pdf document)
## Pre-accept licence
## https://github.com/captnswing/msttcorefonts
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
RUN apt-get install -y --no-install-recommends fontconfig ttf-mscorefonts-installer

RUN export DEBIAN_FRONTEND=noninteractive; apt-get -qq update \
&& apt-get install -y --no-install-recommends \
fontconfig \
ttf-mscorefonts-installer \
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# libv8-dev \
# libjq-dev \
# libprotobuf-dev \
# protobuf-compiler \
# libfontconfig1-dev \
# gdal-bin \
# libgdal-dev \
# libglpk-dev \
# libgmp-dev \
# libproj-dev \
# libxml2-dev \
# libudunits2-dev \
# libcairo2-dev \
# qpdf \
35
36
37
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/

38
39

# Install required LaTeX packages for pdf reports
40
41
RUN tlmgr update --self \
&& tlmgr install \
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
amsfonts \
amsmath \
latex-amsmath-dev \
iftex \
kvoptions \
ltxcmds \
kvsetkeys \
etoolbox \
atbegshi \
atveryend \
auxhook \
bigintcalc \
bitset \
etexcmds \
gettitlestring \
hycolor \
hyperref \
intcalc \
kvdefinekeys \
letltxmacro \
pdfescape \
refcount \
rerunfilecheck \
stringenc \
uniquecounter \
url \
zapfding \
pdftexcmds \
infwarerr \
geometry \
latex-tools-dev \
booktabs \
grffile \
75
76
77
78
79
80
81
epstopdf-pkg \
euenc \
fontspec \
lm-math \
tipa \
unicode-math \
xunicode
82
83

# Install R-package dependencies for compiling reports
Renaud Lancelot's avatar
Renaud Lancelot committed
84
RUN ["install2.r", "ade4", "Cairo", "countrycode", "drake", "furrr", "future.callr", "here", "hrbrthemes", "janitor", "knitr", "latticeExtra", "pacman", "readxl", "rjson", "rmarkdown", "rmdformats"]
85
86
87
88

## Only needed with the option fig_crop
## which gives issues with device Cairo
## https://github.com/yihui/knitr/issues/1365
Renaud Lancelot's avatar
Renaud Lancelot committed
89
RUN ["install2.r", "magick"]
90
91
92

# Set up environment
RUN echo 'alias ll="ls -lh --color=tty"' >> ~/.bashrc