-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
80 lines (73 loc) · 2.3 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM rocker/ml
USER root
# Install common softwares
RUN apt-get -y update && \
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | bash -s && \
apt-get -y install tini && \
rm -rf /var/lib/apt/lists/*
ENV \
# Change the locale
LANG=fr_FR.UTF-8 \
# option for include s3 support in arrow package
LIBARROW_MINIMAL=false
RUN \
# Add Shiny support
bash /rocker_scripts/install_shiny_server.sh \
# Install system librairies
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils software-properties-common \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openssh-client \
libpng++-dev \
libudunits2-dev \
libgdal-dev \
curl \
jq \
bash-completion \
gnupg2 \
unixodbc \
unixodbc-dev \
odbc-postgresql \
libsqliteodbc \
alien \
libsodium-dev \
libsecret-1-dev \
libarchive-dev \
libglpk-dev \
# chromium \
ghostscript \
fontconfig \
fonts-symbola \
fonts-noto \
fonts-freefont-ttf \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
# Handle localization
&& cp /usr/share/zoneinfo/Europe/Paris /etc/localtime \
&& sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& update-locale LANG=fr_FR.UTF-8
RUN kubectl completion bash >/etc/bash_completion.d/kubectl
RUN \
R -e "update.packages(ask = 'no')" \
&& install2.r --error \
RPostgreSQL \
RSQLite \
odbc \
keyring \
aws.s3 \
Rglpk \
paws \
vaultr \
arrow \
&& installGithub.r \
inseeFrLab/doremifasol \
`# pkgs for PROPRE reproducible publications:` \
rstudio/pagedown \
spyrales/gouvdown \
spyrales/gouvdown.fonts \
&& R -e "devtools::install_github('apache/spark@v$SPARK_VERSION', subdir='R/pkg')" \
&& find /usr/local/lib/R/site-library/gouvdown.fonts -name "*.ttf" -exec cp '{}' /usr/local/share/fonts \; \
&& fc-cache \
&& Rscript -e "gouvdown::check_fonts_in_r()"
VOLUME ["/home"]