From 13d515f00a6f5b801f46576eed9e671b31b4861e Mon Sep 17 00:00:00 2001 From: "vimartin@redhat.com" Date: Thu, 15 Aug 2024 12:56:56 +0200 Subject: [PATCH] Drop alternatives and use python3 bin --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1ac09c7..e5c669f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,9 @@ RUN INSTALL_PKGS="\ COPY . /source/app WORKDIR /source/app -RUN alternatives --set python /usr/bin/python3 && \ - python -m pip install --no-cache-dir -r requirements-build.txt && \ - python -m pip install --no-cache-dir . && \ - python -m pip freeze +RUN python3 -m pip install --no-cache-dir -r requirements-build.txt && \ + python3 -m pip install --no-cache-dir . && \ + python3 -m pip freeze # Cleanup # >> ignore SC2086 because passing quoted env vars to dnf causes issues (fail to install)