From 4f0698ce8df334bd976f43b911580b9dc5f9a599 Mon Sep 17 00:00:00 2001 From: "Casale, Robert" Date: Fri, 28 Feb 2025 16:26:23 -0500 Subject: [PATCH] feat(Dockerfile.deps): switch to python:alpine base image This change will avoid using the Microsoft Azure CLI image, because the newer versions contain Azure Linux operating system instead of Alpine. This change in operating system can cause issues for user building on top of this image. Therefore introducing a breaking change, which I think we should try to avoid. Signed-off-by: Casale, Robert --- Dockerfile.deps | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.deps b/Dockerfile.deps index 2b4f74eb..ab25d5f5 100644 --- a/Dockerfile.deps +++ b/Dockerfile.deps @@ -36,9 +36,7 @@ RUN curl -L \ RUN curl -L https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -o helm.tar.gz && \ tar xvfz helm.tar.gz -# Azure CLI -FROM mcr.microsoft.com/azure-cli:2.67.0 -RUN apk --no-cache add ca-certificates +FROM python:alpine WORKDIR /app/ ENV PATH="/app:${PATH}" @@ -53,6 +51,10 @@ COPY --from=builder bin/${TARGETOS}_${TARGETARCH}/kubelogin . COPY --from=builder ${TARGETOS}-${TARGETARCH}/helm . COPY kconnect . -RUN adduser -D kconnect +# Azure CLI +RUN apk --no-cache add ca-certificates cargo gcc libffi-dev make musl-dev openssl-dev python3-dev && \ + pip install --upgrade pip && \ + pip install azure-cli && \ + adduser -D kconnect USER kconnect ENTRYPOINT ["/app/kconnect"]