make alpine dockerfile arch-agnostic

This commit is contained in:
Patrick Schratz 2024-09-04 22:38:55 +02:00
commit 125caa8a3e
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -22,6 +22,6 @@ RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/
COPY . .
# 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/rhel9/latest", CRAN = "https://cloud.r-project.org"))); install.packages("remotes"); remotes::install_deps()'
RUN rm -rf arm-binaries-r
RUN r-pkg-binaries
CMD ["/bin/bash"]