istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/docker/Dockerfile.ztunnel (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  WORKDIR /
    19  
    20  ARG istio_version
    21  
    22  # Install ztunnel.
    23  ARG TARGETARCH
    24  COPY ${TARGETARCH:-amd64}/ztunnel /usr/local/bin/ztunnel
    25  
    26  # Environment variable indicating the exact build, for debugging
    27  ENV ISTIO_META_ISTIO_VERSION $istio_version
    28  
    29  ENTRYPOINT ["/usr/local/bin/ztunnel"]