Skip to content

Commit 752204c

Browse files
committed
fix azure CLI install
1 parent 0d43408 commit 752204c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2121
python3-all-dev \
2222
python3-pip \
2323
python3-setuptools \
24+
python3-venv \
2425
python3.6 \
2526
redis-tools \
2627
ruby-full \
@@ -44,7 +45,10 @@ RUN wget https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_lin
4445
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install
4546

4647
# Azure CLI
47-
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
48+
RUN python3 -m venv /opt/azure-cli && \
49+
. /opt/azure-cli/bin/activate && \
50+
pip install --no-cache-dir azure-cli && \
51+
ln -s /opt/azure-cli/bin/az /usr/local/bin/az
4852

4953
# GCloud SDK
5054
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && \

0 commit comments

Comments
 (0)