forked from InseeFrLab/utilitR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (49 loc) · 2.33 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
FROM rocker/geospatial:4.1.1
# R packages
COPY ./DESCRIPTION /tmp/build_image/
RUN Rscript -e "install.packages(c('xfun','knitr', 'insee', 'OECD'))"
RUN Rscript -e "remotes::install_deps('/tmp/build_image', dependencies = TRUE, upgrade = FALSE)"
RUN Rscript -e "remotes::install_github('kevinushey/rex')"
RUN Rscript -e "remotes::install_github('rstudio/bookdown')"
RUN Rscript -e "remotes::install_github('inseefrlab/inseelocaldata')"
RUN Rscript -e "remotes::install_github('inseefrlab/doremifasol', build_vignettes = TRUE)"
RUN apt-get update \
&& apt-get -qq install gnupg
RUN sh -c 'echo "deb http://http.us.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list' \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793
RUN apt-get update \
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
RUN apt-get -qq install --no-install-recommends \
ttf-mscorefonts-installer \
fonts-liberation \
fonts-freefont-ttf \
libssl-dev \
imagemagick \
libmagick++-dev \
ghostscript \
libgs-dev \
librsvg2-dev \
libwebp-dev \
jq
RUN rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb
RUN apt-get upgrade -y
RUN apt-get update && \
apt-get -yq install wget apt-transport-https ca-certificates gnupg --no-install-recommends && \
apt-get -yq install libgconf-2-4 && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' &&\
apt-get update && \
apt-get -yq install google-chrome-stable --no-install-recommends &&\
apt-get upgrade -y &&\
apt-get autoremove -y
# Installing mc
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mc && \
chmod +x /usr/local/bin/mc
# Change right permissions (see https://github.com/rocker-org/rocker-versioned/issues/104)
# RUN chown -R root:staff /opt/texlive \
# && chown -R root:staff /usr/local/texlive \
# && chmod -R 777 /opt/texlive \
# && chmod -R 777 /usr/local/texlive