From cb3f6373509eda897a8338c6630066bd3650259d Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Tue, 15 Oct 2024 22:47:47 +0200 Subject: [PATCH] fix: readlink before mv --- Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 79c9e8e..b4a5d51 100644 --- a/Containerfile +++ b/Containerfile @@ -21,7 +21,9 @@ RUN mv /root/go/bin/* /usr/local/bin/ COPY krew-plugins / RUN grep -v '^#' /krew-plugins | xargs -n1 kubectl krew install RUN rm /krew-plugins -RUN mv /root/.krew/bin/* /usr/local/bin/ +RUN for bin in /root/.krew/bin/*; do \ + mv $(readlink $bin) /usr/local/bin/$(basename $bin); \ + done RUN ln -fs /bin/sh /usr/bin/sh && \ ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \