FROM redhat/ubi8 ARG R_VERSION=4.0.5 ARG RED_HAT_DEV_PW RUN subscription-manager register --username pat-s --password $RED_HAT_DEV_PW && subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms && dnf update RUN dnf -y install --nodocs git rsync RUN echo "R Version: ${R_VERSION}" && echo "Downloading R-${R_VERSION}.rpm from S3..." && curl -o /tmp/R-${R_VERSION}.rpm https://cynkra-r-builds-arm64.s3.eu-central-1.amazonaws.com/el8/R-"${R_VERSION}"-1-1."$(arch)".rpm && dnf install --nodocs -y /tmp/R-${R_VERSION}.rpm && rm -rf /tmp/R-${R_VERSION}.rpm ENV PATH=/opt/R/${R_VERSION}/bin:$PATH ENV R_PROGRESSR_ENABLE=TRUE CMD ["R"]