Skip to content

Commit df0e7ca

Browse files
authored
RHOAIENG-30927, RHOAIENG-10057: add dnf upgrade to rstudio images to mitigate fixable vulnerabilities (#1488) (#1545)
Cherry-picked from a49c372
1 parent ee99f24 commit df0e7ca

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

rstudio/c9s-python-3.11/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
1418
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

rstudio/c9s-python-3.11/Dockerfile.cuda

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
1418
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

rstudio/rhel9-python-3.11/Dockerfile.cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
1418
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

rstudio/rhel9-python-3.11/Dockerfile.cuda

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
1418
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

0 commit comments

Comments
 (0)