From 52f8df9c51f04dd478a19c7ef3e97f4cb557e576 Mon Sep 17 00:00:00 2001 From: kilianjrk Date: Thu, 21 Dec 2023 15:48:33 +0100 Subject: [PATCH] pipx_fix --- Dockerfile | 1 - Dockerfile.minimal | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a69f6c5..b165df5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -281,7 +281,6 @@ RUN if [[ ! -z ${ANSIBLE_VERSION} && ! -z ${JINJA_VERSION} ]] ; then \ #install azure-cli RUN if [[ ! -z ${AZ_CLI_VERSION} ]] ; then \ - apt remove azure-cli -y || true && \ pipx install azure-cli==${AZ_CLI_VERSION}; \ fi diff --git a/Dockerfile.minimal b/Dockerfile.minimal index ef9d503..b4bd13d 100644 --- a/Dockerfile.minimal +++ b/Dockerfile.minimal @@ -36,7 +36,8 @@ RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/too RUN apk add --no-cache --update gcc libc-dev linux-headers pipx && rm -rf /var/cache/apk/* -RUN pipx install azure-cli +RUN pipx install azure-cli && \ + pipx ensurepath RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \