chore: install az-cli using pip in build-tools
@@ -10,18 +10,11 @@ RUN apt-add-repository ppa:git-core/ppa && \
# Use Bash instead of Dash
RUN ln -sf bash /bin/sh
-# Install azure-cli
-RUN apt-get install apt-transport-https lsb-release dirmngr -y && \
- curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | \
- tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null && \
- AZ_REPO=$(lsb_release -cs) && \
- echo "deb [arch=$(dpkg --print-architecture)] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
- tee /etc/apt/sources.list.d/azure-cli.list && \
- apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg adv \
- --keyserver keyserver.ubuntu.com \
- --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF && \
- apt-get update && \
- apt-get install -y azure-cli
+# Install python3
+RUN apt install -y python3 python3-pip
+
+# Install azure-cli (using pip)
+RUN python3 -m pip install azure.cli
# Install docker
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release && \
