Skip to content

Commit 57935b1

Browse files
committedMar 7, 2025·
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 <[email protected]>
1 parent f77309c commit 57935b1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎Dockerfile.deps

+6-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ RUN curl -L \
3636
RUN curl -L https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -o helm.tar.gz && \
3737
tar xvfz helm.tar.gz
3838

39-
# Azure CLI
40-
FROM mcr.microsoft.com/azure-cli:2.67.0
41-
RUN apk --no-cache add ca-certificates
39+
FROM python:alpine
4240

4341
WORKDIR /app/
4442
ENV PATH="/app:${PATH}"
@@ -53,6 +51,10 @@ COPY --from=builder bin/${TARGETOS}_${TARGETARCH}/kubelogin .
5351
COPY --from=builder ${TARGETOS}-${TARGETARCH}/helm .
5452
COPY kconnect .
5553

56-
RUN adduser -D kconnect
54+
# Azure CLI
55+
RUN apk --no-cache add ca-certificates cargo gcc libffi-dev make musl-dev openssl-dev python3-dev && \
56+
pip install --upgrade pip && \
57+
pip install azure-cli && \
58+
adduser -D kconnect
5759
USER kconnect
5860
ENTRYPOINT ["/app/kconnect"]

0 commit comments

Comments
 (0)
Please sign in to comment.