-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (38 loc) · 1.44 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
FROM rocker/r-ver:4.2.2
ENV S6_VERSION=v2.1.0.2
ENV RSTUDIO_VERSION=2022.12.0+353
ENV DEFAULT_USER=rstudio
ENV PANDOC_VERSION=default
ENV PATH=/usr/lib/rstudio-server/bin:$PATH
RUN /rocker_scripts/install_rstudio.sh
RUN /rocker_scripts/install_pandoc.sh
RUN apt-get update && apt-get install -y --no-install-recommends \
zlib1g-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# Install git
RUN apt-get -y install git
# Set cache path
RUN echo "RENV_PATHS_CACHE=/renv/cache" >> /usr/local/lib/R/etc/Renviron
# Install renv
RUN install2.r -e renv
# install required library to compile systemfonts package which is a part of devtools package
RUN apt-get update && apt-get install -y libfontconfig1-dev \
&& rm -rf /var/lib/apt/lists/*
# install required library to compile textshaping package which is a part of devtools package
RUN apt-get update && apt-get install -y libharfbuzz-dev libfribidi-dev \
&& rm -rf /var/lib/apt/lists/*
# install required library to compile rang package which is a part of devtools package
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
# install required library to compile gert package which is a part of devtools package
RUN apt-get update && apt-get install -y libgit2-dev \
&& rm -rf /var/lib/apt/lists/*
# Disabling the authentication step
ENV DISABLE_AUTH=true
EXPOSE 8787
CMD ["/init"]