Skip to content

Commit

Permalink
chore(kuma-init): use distroless image
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <[email protected]>
Co-authored-by: Ilya Lobkov <[email protected]>
  • Loading branch information
slonka and lobkovilya committed Oct 21, 2024
1 parent 9a38f4e commit 14d439f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tools/releases/dockerfiles/kuma-init.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
# until there is a distroless iptables image we have to use something else
FROM ubuntu:jammy-20240808@sha256:adbb90115a21969d2fe6fa7f9af4253e16d45f8d4c1e930182610c4731962658
FROM gcr.io/k8s-staging-build-image/distroless-iptables:v0.1.2
ARG ARCH

RUN apt-get update && \
apt-get install --no-install-recommends -y iptables=1.8.7-1ubuntu5.2 iproute2=5.15.0-1ubuntu2 && \
rm -rf /var/lib/apt/lists/*

COPY /build/artifacts-linux-$ARCH/kumactl/kumactl /usr/bin

# this will be from a base image once it is done
COPY /tools/releases/templates/LICENSE \
/tools/releases/templates/README \
/kuma/

COPY /tools/releases/templates/NOTICE /kuma/NOTICE

RUN adduser --system --disabled-password --group kumactl --uid 5678
COPY /tools/releases/templates/NOTICE-kumactl /kuma/NOTICE

ENTRYPOINT ["/usr/bin/kumactl"]
CMD ["install", "transparent-proxy"]

0 comments on commit 14d439f

Please sign in to comment.