@@ -3,6 +3,9 @@ FROM projectoss/alpine:3.20.0
33# Install security updates first
44RUN apk update && apk upgrade
55
6+ # Install glibc compatibility for AWS CLI v2
7+ RUN apk add --no-cache gcompat
8+
69# Install required packages
710RUN apk add --no-cache \
811 ca-certificates \
@@ -16,13 +19,15 @@ RUN apk add --no-cache \
1619 python3 \
1720 py3-pip \
1821 unzip \
19- groff
22+ groff \
23+ libc6-compat
2024
21- # Install AWS CLI using the official installer (more reliable than pip)
25+ # Install AWS CLI v2 with glibc compatibility
2226RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
2327 && unzip awscliv2.zip \
2428 && ./aws/install \
25- && rm -rf aws awscliv2.zip
29+ && rm -rf aws awscliv2.zip \
30+ && aws --version
2631
2732# Set versions - update these regularly
2833ARG KUBECTL_VERSION="1.30.0"
@@ -36,17 +41,11 @@ RUN curl -L "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubec
3641 && chmod +x /usr/local/bin/kubectl \
3742 && rm kubectl.sha256
3843
39- # Install Helm with better error handling
40- RUN set -ex \
41- && HELM_URL="https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz" \
42- && echo "Downloading Helm from: $HELM_URL" \
43- && curl -fsSL "$HELM_URL" -o helm.tar.gz \
44- && echo "Downloaded Helm, extracting..." \
45- && tar -xzf helm.tar.gz \
46- && mv linux-amd64/helm /usr/local/bin/helm \
47- && chmod +x /usr/local/bin/helm \
48- && rm -rf linux-amd64 helm.tar.gz \
49- && helm version --short
44+ # Install Helm using official installer script (more reliable)
45+ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 \
46+ && chmod 700 get_helm.sh \
47+ && ./get_helm.sh --version v${HELM_VERSION} \
48+ && rm get_helm.sh
5049
5150# Install kubeseal for sealed secrets support
5251RUN curl -L "https://github.com/bitnami-labs/sealed-secrets/releases/download/v${KUBESEAL_VERSION}/kubeseal-${KUBESEAL_VERSION}-linux-amd64.tar.gz" -o kubeseal.tar.gz \
0 commit comments