@@ -19,6 +19,9 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]==1.9.0" "uv==0.8.12"
1919# OS Packages needs to be installed as root
2020USER root
2121
22+ # Enable copr, so we can do dnf upgrade
23+ RUN dnf copr enable copr.devel.redhat.com/mcurlej/rstudio-server-dependencies rhel-9-x86_64 -y
24+
2225# upgrade first to avoid fixable vulnerabilities begin
2326# Problem: The operation would result in removing the following protected packages: systemd
2427# (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
@@ -60,10 +63,18 @@ USER 0
6063
6164ENV R_VERSION=4.5.1
6265
66+ # Use CentOS while we are still waiting on final AIPCC image
67+ RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/
68+ RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/
69+ RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/CRB/x86_64/os/
70+ RUN dnf makecache
71+ RUN rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
72+
73+ # This package causes issues with openssl installation
74+ RUN rpm -e openssl-fips-provider-so --nodeps
75+
6376# Install R
64- RUN dnf install -y 'dnf-command(config-manager)' && \
65- dnf config-manager --set-enabled crb && \
66- dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
77+ RUN dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
6778 INSTALL_PKGS="R-core R-core-devel R-java R-Rcpp R-highlight \
6879 R-littler R-littler-examples openssl-libs compat-openssl11" && \
6980 dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
@@ -83,6 +94,10 @@ RUN chmod -R a+w ${LIBLOC} && \
8394WORKDIR /tmp/
8495COPY /rstudio/utils /tmp/utils
8596
97+ # npm required by ./cve_remediation.sh
98+ RUN dnf module enable nodejs:22 -y
99+ RUN dnf install nodejs npm -y
100+
86101# Install RStudio
87102ARG RSTUDIO_RPM=rstudio-server-rhel-2025.09.0-387-x86_64.rpm
88103RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/${RSTUDIO_RPM} && \
0 commit comments