istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/docker/Dockerfile.proxyv2 (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 proxy_version 21 ARG SIDECAR=envoy 22 23 # Copy Envoy bootstrap templates used by pilot-agent 24 COPY envoy_bootstrap.json /var/lib/istio/envoy/envoy_bootstrap_tmpl.json 25 COPY gcp_envoy_bootstrap.json /var/lib/istio/envoy/gcp_envoy_bootstrap_tmpl.json 26 27 # Install Envoy. 28 ARG TARGETARCH 29 COPY ${TARGETARCH:-amd64}/${SIDECAR} /usr/local/bin/${SIDECAR} 30 31 # Environment variable indicating the exact proxy sha - for debugging or version-specific configs 32 ENV ISTIO_META_ISTIO_PROXY_SHA $proxy_version 33 34 ARG TARGETARCH 35 COPY ${TARGETARCH:-amd64}/pilot-agent /usr/local/bin/pilot-agent 36 37 # The pilot-agent will bootstrap Envoy. 38 ENTRYPOINT ["/usr/local/bin/pilot-agent"]