-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(kuma-init): use distroless image
Signed-off-by: slonka <[email protected]> Co-authored-by: Ilya Lobkov <[email protected]>
- Loading branch information
1 parent
9a38f4e
commit 14d439f
Showing
1 changed file
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |