Mirror of Istio: Connect, secure, control, and observe services.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.proxy_init 1.0KB

  1. # BASE_DISTRIBUTION is used to switch between the old base distribution and distroless base images
  3. # ISTIO_VERSION is used to specify the version of the release
  4. ARG BASE_VERSION=latest
  5. # The following section is used as base image if BASE_DISTRIBUTION=default
  6. FROM docker.io/istio/base:${BASE_VERSION} as default
  7. COPY istio-iptables.sh /usr/local/bin/
  8. ENTRYPOINT ["/usr/local/bin/istio-iptables.sh"]
  9. # The following section is used as base image if BASE_DISTRIBUTION=distroless
  10. # hadolint ignore=DL3007
  11. FROM gcr.io/distroless/cc:latest as distroless
  12. COPY --from=default /sbin/xtables-multi /sbin/iptables* /sbin/ip6tables* /sbin/ip /sbin/
  13. COPY --from=default /lib/xtables/ /lib/xtables
  14. COPY --from=default /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu
  15. COPY --from=default /etc/iproute2 /etc/iproute2
  16. COPY istio-iptables /usr/local/bin/istio-iptables
  17. ENTRYPOINT ["/usr/local/bin/istio-iptables"]
  18. # This will build the final image based on either default or distroless from above
  19. # hadolint ignore=DL3006