istio.io/istio@v0.0.0-20240520182934-d79c90f27776/cni/deployments/kubernetes/Dockerfile.install-cni (about) 1 # BASE_DISTRIBUTION is used to switch between the old base distribution and distroless base images 2 ARG BASE_DISTRIBUTION=debug 3 4 # Version is the base image version from the TLD Makefile 5 ARG BASE_VERSION=latest 6 ARG ISTIO_BASE_REGISTRY=gcr.io/istio-release 7 8 # The following section is used as base image if BASE_DISTRIBUTION=debug 9 FROM ${ISTIO_BASE_REGISTRY}/base:${BASE_VERSION} as debug 10 11 # The following section is used as base image if BASE_DISTRIBUTION=distroless 12 FROM ${ISTIO_BASE_REGISTRY}/iptables:${BASE_VERSION} as distroless 13 14 # This will build the final image based on either debug or distroless from above 15 # hadolint ignore=DL3006 16 FROM ${BASE_DISTRIBUTION:-debug} 17 18 LABEL description="Istio CNI plugin installer." 19 20 ARG TARGETARCH 21 COPY ${TARGETARCH:-amd64}/istio-cni /opt/cni/bin/istio-cni 22 COPY ${TARGETARCH:-amd64}/install-cni /usr/local/bin/install-cni 23 24 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/cni/bin 25 WORKDIR /opt/cni/bin 26 CMD ["/usr/local/bin/install-cni"]