istio.io/istio@v0.0.0-20240520182934-d79c90f27776/operator/docker/Dockerfile.operator (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}/distroless:${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  # install operator binary
    19  ARG TARGETARCH
    20  COPY ${TARGETARCH:-amd64}/operator /usr/local/bin/operator
    21  
    22  # add operator manifests
    23  COPY manifests/ /var/lib/istio/manifests/
    24  
    25  USER 1337:1337
    26  
    27  ENTRYPOINT ["/usr/local/bin/operator"]