istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/docker/Dockerfile.pilot (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 ARG TARGETARCH 19 COPY ${TARGETARCH:-amd64}/pilot-discovery /usr/local/bin/pilot-discovery 20 21 # Copy templates for bootstrap generation. 22 COPY envoy_bootstrap.json /var/lib/istio/envoy/envoy_bootstrap_tmpl.json 23 COPY gcp_envoy_bootstrap.json /var/lib/istio/envoy/gcp_envoy_bootstrap_tmpl.json 24 25 USER 1337:1337 26 27 ENTRYPOINT ["/usr/local/bin/pilot-discovery"]