start building docker images
This commit is contained in:
parent
fe99870a94
commit
7b9cf84ebc
1 changed files with 61 additions and 26 deletions
15
docker/Dockerfile.rhel8
Normal file
15
docker/Dockerfile.rhel8
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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"]
|
||||
Loading…
Reference in a new issue