From 610b3b8637e3e9361fa2f317d62f67f0a48404cb Mon Sep 17 00:00:00 2001 From: SAM CARPENTER <sam.carpenter@wisc.edu> Date: Fri, 19 Apr 2024 11:44:03 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 806af9d..609c49e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,11 +21,6 @@ ARG AGENT_URL="https://common.${REGION}.informaticacloud.com/package-manager/fil ARG USER=agent ENV INFA_HOME=/home/$USER/infaagent -# this better bypass python trying to use pip install -RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" -RUN unzip awscliv2.zip -RUN ./aws/install - # install system tools RUN apt-get update && apt-get install -y \ curl \ @@ -41,7 +36,13 @@ unixodbc \ unzip \ wget \ libidn11 \ -python3 +python3 \ +pipx + +# all this to run python properly +RUN pipx ensurepath +ENV PATH="$PATH:/root/.local/bin" +RUN pipx install awscli RUN python3 --version -- GitLab