Skip to content

Commit

Permalink
remove wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
gi8lino committed Nov 20, 2024
1 parent a49ddc5 commit 40fb7f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 81 deletions.
15 changes: 1 addition & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Step 1: Build the wrapper
FROM alpine:3.20 as wrapper-builder

RUN apk add --no-cache gcc musl-dev make

COPY wrapper.c /src/wrapper.c

RUN gcc -o /wrapper /src/wrapper.c -static && chmod +x /wrapper

# Step 2: Download kubectl binary
FROM alpine:3.20 as downloader

# renovate: datasource=github-tags depName=kubernetes/kubectl extractVersion=^kubernetes-(?<version>.*)$
Expand All @@ -17,11 +7,8 @@ RUN apk add --no-cache curl && \
curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
chmod +x kubectl

# Step 3: Create the final minimal image
FROM gcr.io/distroless/static-debian12:nonroot

COPY --from=downloader /kubectl /usr/local/bin/kubectl
COPY --from=wrapper-builder /wrapper /usr/local/bin/wrapper

ENTRYPOINT ["/usr/local/bin/wrapper"]
CMD [ "kubectl" ]
ENTRYPOINT ["/usr/local/bin/kubectl"]
67 changes: 0 additions & 67 deletions wrapper.c

This file was deleted.

0 comments on commit 40fb7f8

Please sign in to comment.