From 3233d7de4d011d75cb006ab5bf2b65a7241200a0 Mon Sep 17 00:00:00 2001 From: Tom Martensen Date: Fri, 8 Nov 2024 11:10:38 +0100 Subject: [PATCH] got it --- images/stackrox-test.Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/images/stackrox-test.Dockerfile b/images/stackrox-test.Dockerfile index ff0c5773..1d7751e3 100644 --- a/images/stackrox-test.Dockerfile +++ b/images/stackrox-test.Dockerfile @@ -45,7 +45,7 @@ RUN dnf update -y \ xmlstarlet \ xz \ zip \ - && dnf remove -y python36 java-1.8.0-openjdk-headless \ + && dnf remove -y java-1.8.0-openjdk-headless \ && dnf --disablerepo="*" --enablerepo="pgdg14" install -y postgresql14 postgresql14-server postgresql14-contrib \ && dnf clean all \ && rm -rf /var/cache/dnf /var/cache/yum @@ -75,8 +75,10 @@ RUN set -ex \ && command -v docker \ && (docker version --format '{{.Client.Version}}' || true) - # Symlink python to python3 -RUN ln -s /usr/bin/python3 /usr/bin/python + # Symlink python to python3. + # Explicitly set python3.9 to python3 instead of python3.6, latter is required for nodejs. +RUN update-alternatives --set python3 /usr/bin/python3.9 \ + && ln -s /usr/bin/python3 /usr/bin/python # oc RUN set -ex \