Skip to content

Commit f6d26d4

Browse files
committed
Apply best docker practices
1 parent e321932 commit f6d26d4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

rstudio/c9s-python-3.12/install_packages.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ if (!requireNamespace("remotes", quietly = TRUE)) {
1212
install.packages("remotes")
1313
}
1414

15-
# Install specific versions of packages
1615
# Install specific versions of packages
1716
remotes::install_version('Rcpp', '1.0.14', lib = lib, dependencies = TRUE, upgrade = "never")
1817
remotes::install_version('tidyverse', '2.0.0', lib = lib, dependencies = TRUE, upgrade = "never")

rstudio/rhel9-python-3.12/Dockerfile.cpu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ ARG TARGETARCH
55
#########################
66
ARG BASE_IMAGE
77

8+
# External image alias for UBI repository configuration
9+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
10+
811
####################
912
# cpu-base #
1013
####################
@@ -18,7 +21,7 @@ USER root
1821
# Inject the official UBI 9 repository configuration into the AIPCC base image.
1922
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
2023
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
21-
COPY --from=registry.access.redhat.com/ubi9/ubi /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
24+
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2225

2326
# upgrade first to avoid fixable vulnerabilities begin
2427
# Problem: The operation would result in removing the following protected packages: systemd

rstudio/rhel9-python-3.12/Dockerfile.cuda

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ ARG TARGETARCH
55
#########################
66
ARG BASE_IMAGE
77

8+
# External image alias for UBI repository configuration
9+
FROM registry.access.redhat.com/ubi9/ubi AS ubi-repos
10+
811
####################
912
# cuda-base #
1013
####################
@@ -18,7 +21,7 @@ USER root
1821
# Inject the official UBI 9 repository configuration into the AIPCC base image.
1922
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
2023
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
21-
COPY --from=registry.access.redhat.com/ubi9/ubi /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
24+
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2225

2326
# upgrade first to avoid fixable vulnerabilities begin
2427
# Problem: The operation would result in removing the following protected packages: systemd

0 commit comments

Comments
 (0)