use workaround in docker files for dep install

This commit is contained in:
Patrick Schratz 2024-09-03 18:49:13 +02:00
commit f50610c789
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -30,8 +30,8 @@ RUN apk add --allow-untrusted r-4.4.1_1_aarch64.apk && rm r-4.4.1_1_aarch64.apk
RUN R -q -e 'install.packages("remotes", repo = "cloud.r-project.org"); remotes::install_github("pat-s/pak@alpine")'
COPY . .
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "alpine"); pak::pak()'
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "alpine"); pak::pak("devtools")'
# FIXME: switch to pak after https://github.com/r-lib/pak/issues/628
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE); options(Ncpus = 4, repos = structure(c(devxy = "https://cran.devxy.io/arm64/alpine320/latest", CRAN = "https://cloud.r-project.org"))); install.packages("remotes"); remotes::install_deps()'
RUN rm -rf arm-binaries-r
CMD ["/bin/bash"]