Dockerfile 1.7 KB
Newer Older
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
# 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"

# # Install external dependencies
# RUN export DEBIAN_FRONTEND=noninteractive; apt-get -qq update \
# && apt-get install -y --no-install-recommends \
# 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 \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/

# Install required LaTeX packages for pdf reports
RUN tlmgr install \
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 \
epstopdf-pkg

# Install R-package dependencies for compiling reports
RUN ["install2.r", "ade4", "Cairo", "countrycode", "cshapes", "drake", "furrr", "future.callr", "ggthemes", "ggrepel", "here", "hrbrthemes", "janitor", "knitr", "latticeExtra", "pacman", "readxl", "rjson", "rmarkdown", "rmdformats"]
RUN ["install2.r", "INLA", "-r", "https://inla.r-inla-download.org/R/stable"]

## Only needed with the option fig_crop
## which gives issues with device Cairo
## https://github.com/yihui/knitr/issues/1365
# RUN ["install2.r", "magick"]

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