-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 890 Bytes
/
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
# Build arguments
ARG OS_NAME=ubuntu
ARG OS_VERSION=jammy
# Fetch base image
FROM ${OS_NAME}:${OS_VERSION}
ARG R_VERSION=latest
ARG CRAN=https://packagemanager.posit.co/cran/__linux__/jammy/latest
# https://github.com/jgm/pandoc/tags
ARG PANDOC_VERSION=2.9.2.1
# https://github.com/quarto-dev/quarto-cli/tags
ARG QUARTO_VERSION=1.3.450
# https://github.com/lycheeverse/lychee/releases/
ARG LYCHEE_VERSION=0.15.1
# Set up environment
ENV R_HOME=/usr/local/lib/R
ENV TZ=Etc/UTC
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
COPY rocker_scripts/scripts /rocker_scripts
RUN /rocker_scripts/install_R_source.sh && \
/rocker_scripts/setup_R.sh && \
/rocker_scripts/install_pandoc.sh && \
/rocker_scripts/install_quarto.sh
COPY scripts /scripts
RUN /scripts/install_sys_deps.sh && \
/scripts/install_r_pkgs.R
# Cleanup
RUN rm -rf /rocker_scripts /scripts
CMD ["/init"]