Skip to content

Commit 47c6715

Browse files
authored
Merge pull request #1290 from flux-iac/fix/azcli
fix: build of tf-runner-azure
2 parents 00031bc + 27d7aec commit 47c6715

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

runner-azure.Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
ARG BASE_IMAGE
2+
3+
FROM mcr.microsoft.com/azure-cli:2.50.0 as azcli
4+
25
FROM $BASE_IMAGE
36

47
ARG TARGETARCH
@@ -12,12 +15,8 @@ RUN unzip -q /terraform_${TF_VERSION}_linux_${TARGETARCH}.zip -d /usr/local/bin/
1215
rm /terraform_${TF_VERSION}_linux_${TARGETARCH}.zip && \
1316
chmod +x /usr/local/bin/terraform
1417

15-
# Install az cli
16-
ARG AZCLI_VERSION=2.50.0
17-
RUN apk add --no-cache py3-pip && \
18-
apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev
19-
RUN pip install --break-system-packages --upgrade pip && \
20-
pip install azure-cli==${AZCLI_VERSION} --break-system-packages
18+
# Copy az cli
19+
COPY --from=azcli /usr/local/bin/az /usr/local/bin/az
2120

2221
# Switch back to the non-root user after operations
2322
USER 65532:65532

0 commit comments

Comments
 (0)