diff --git a/Dockerfile b/Dockerfile index 991d719..c476e52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,12 +54,25 @@ RUN gcloud --version && \ USER spacelift +FROM base AS azure-build + +RUN apk add --no-cache py3-pip gcc musl-dev python3-dev libffi-dev openssl-dev cargo make + +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" + +RUN pip install --no-cache-dir azure-cli + FROM base AS azure -RUN az --version && \ +ENV PATH="/opt/venv/bin:$PATH" + +COPY --from=azure-build /opt/venv /opt/venv + +RUN apk add --no-cache py3-pip && \ + az --version && \ terragrunt --version && \ python --version && \ infracost --version USER spacelift - diff --git a/docker-bake.hcl b/docker-bake.hcl index 0c7902d..99879d7 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -13,5 +13,5 @@ target "gcp" { target "azure" { target = "azure" platforms = ["linux/amd64", "linux/arm64"] - args = {"BASE_IMAGE": "mcr.microsoft.com/azure-cli:2.63.0"} + args = {"BASE_IMAGE": "alpine:3.20"} }