add ubi9 dockerfile
This commit is contained in:
parent
72cc41f5e7
commit
8e50c2d391
1 changed files with 17 additions and 0 deletions
17
docker/Dockerfile-ubi9
Normal file
17
docker/Dockerfile-ubi9
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM redhat/ubi9:9.4-1181
|
||||
|
||||
ARG RED_HAT_DEV_PW
|
||||
ENV PATH=/opt/R/4.4.1/bin:$PATH
|
||||
ENV TZ="Europe/Berlin"
|
||||
|
||||
RUN subscription-manager register --username mail@devxy.io --password $RED_HAT_DEV_PW && subscription-manager repos --enable codeready-builder-for-rhel-9-aarch64-rpms
|
||||
RUN curl -s -O https://devxy-r-builds.s3.eu-central-003.backblazeb2.com/el9/R-4.4.1-1-1.aarch64.rpm
|
||||
RUN dnf install -q -y R-4.4.1-1-1.aarch64.rpm rsync git
|
||||
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
|
||||
|
||||
COPY . .
|
||||
RUN R -q -e 'Sys.setenv(PKG_SYSREQS = TRUE, PKG_SYSREQS_VERBOSE = TRUE, PKG_SYSREQS_PLATFORM = "redhat-9"); pak::pak()'
|
||||
RUN R CMD INSTALL .
|
||||
RUN rm -rf arm-binaries-r
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Loading…
Reference in a new issue