1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 18:45:18 +01:00
Files
chart-testing/Dockerfile
dependabot[bot] 87442e9de6 build(deps): Bump alpine from 3.22 to 3.23 in the docker group (#794)
Bumps the docker group with 1 update: alpine.


Updates `alpine` from 3.22 to 3.23

---
updated-dependencies:
- dependency-name: alpine
  dependency-version: '3.23'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: docker
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 08:32:47 +01:00

54 lines
1.6 KiB
Docker

FROM alpine:3.23
RUN apk --no-cache add \
bash \
curl \
git \
libc6-compat \
openssh-client \
py3-pip \
py3-wheel \
python3 \
yamllint
# Install Yamale YAML schema validator
ARG yamale_version=6.0.0
LABEL yamale-version=$yamale_version
RUN pip install --break-system-packages "yamale==$yamale_version"
ARG TARGETPLATFORM
# Install kubectl
ARG kubectl_version=v1.32.0
LABEL kubectl-version=$kubectl_version
RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \
&& if [ ${targetArch} = "amd64" ]; then \
HELM_ARCH="linux/amd64"; \
elif [ ${targetArch} = "arm64" ]; then \
HELM_ARCH="linux/arm64"; \
fi \
&& curl -LO "dl.k8s.io/$kubectl_version/bin/$HELM_ARCH/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/
# Install Helm
ARG helm_version=v3.16.4
LABEL helm-version=$helm_version
RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \
&& if [ ${targetArch} = "amd64" ]; then \
HELM_ARCH="linux-amd64"; \
elif [ ${targetArch} = "arm64" ]; then \
HELM_ARCH="linux-arm64"; \
fi \
&& curl -LO "https://get.helm.sh/helm-$helm_version-$HELM_ARCH.tar.gz" \
&& mkdir -p "/usr/local/helm-$helm_version" \
&& tar -xzf "helm-$helm_version-$HELM_ARCH.tar.gz" -C "/usr/local/helm-$helm_version" \
&& ln -s "/usr/local/helm-$helm_version/$HELM_ARCH/helm" /usr/local/bin/helm \
&& rm -f "helm-$helm_version-$HELM_ARCH.tar.gz"
COPY ./etc/chart_schema.yaml /etc/ct/chart_schema.yaml
COPY ./etc/lintconf.yaml /etc/ct/lintconf.yaml
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/ct /usr/local/bin/ct
# Ensure that the binary is available on path and is executable
RUN ct --help