Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build of tf-runner-azure #1290

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions runner-azure.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ARG BASE_IMAGE

FROM mcr.microsoft.com/azure-cli:2.50.0 as azcli

FROM $BASE_IMAGE

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

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

# Switch back to the non-root user after operations
USER 65532:65532
Expand Down
Loading