-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (23 loc) · 1.16 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
FROM rstudio/r-base:4.3.0-focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends eatmydata && \
eatmydata apt-get install -y --no-install-recommends locales && \
echo 'en_US.UTF-8 UTF-8' >>/etc/locale.gen && locale-gen && \
eatmydata apt-get install -y --no-install-recommends git && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG CRAN=https://packagemanager.rstudio.com/cran/__linux__/focal/2023-03-10+L-i8FJMJ
RUN printf 'options(repos = c("CRAN"= "%s"))\n' "$CRAN" >/opt/R/4.3.0/lib/R/etc/Rprofile.site
RUN curl -fSsL -O https://packagemanager.rstudio.com/cran/2023-05-12+bqFWVFWh/src/contrib/styler_1.9.1.tar.gz
RUN Rscript -e 'install.packages(c("remotes", "rcmdcheck"))' && \
Rscript -e 'remotes::install_deps("styler_1.9.1.tar.gz", dependencies = TRUE, upgrade = "always")' && \
rm -rf /tmp/R*
ARG RLANG_COMMIT=35e87908418619f70917e191a2d9721c709527d0
RUN git clone https://github.com/r-lib/rlang.git && \
git -C rlang checkout "$RLANG_COMMIT" && \
R CMD INSTALL rlang
COPY check.R check.sh /
RUN mkdir -p /scratch
WORKDIR /scratch
ENTRYPOINT ["/check.sh"]
CMD []