Skip to content

Commit 683cdff

Browse files
committed
Add subscription-manager refresh step to CPU Dockerfile for base image
1 parent 069e118 commit 683cdff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ EOF
4040
# cpu-base #
4141
####################
4242
FROM ${BASE_IMAGE} AS cpu-base
43+
USER 0
44+
RUN /bin/bash <<'EOF'
45+
set -Eeuxo pipefail
46+
if command -v subscription-manager &> /dev/null; then
47+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "Not registered, skipping refresh."
48+
fi
49+
EOF
4350

4451
WORKDIR /opt/app-root/bin
4552

0 commit comments

Comments
 (0)