You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install a tool and its dependencies in the first stage and copy it to another. There are no copied files in the final image when I'm building it with Kaniko.
Expected behavior
Copied files are expected to be in the image.
To Reproduce
Dockerfile
FROM debian:stable-slim as builder
RUN apt update && \
apt install -y iproute2
RUN mkdir -p /dependencies && \
ldd /sbin/ip | grep '=>' | awk '{print $3}' | xargs -I '{}' cp '{}' /dependencies/
FROM gcr.io/distroless/base-debian12
COPY --from=builder /sbin/ip /sbin/ip
COPY --from=builder /dependencies /usr/lib/x86_64-linux-gnu/
CMD ["/sbin/ip", "-V"]
Actual behavior
I'm trying to install a tool and its dependencies in the first stage and copy it to another. There are no copied files in the final image when I'm building it with Kaniko.
Expected behavior
Copied files are expected to be in the image.
To Reproduce
Dockerfile
Build command
config.json
only contains credentials for the private hubTriage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: