From b88bfcfbeda854b0623cbc28df3468ea1fdcaadf Mon Sep 17 00:00:00 2001 From: Derek Su Date: Fri, 7 Jun 2024 03:41:39 +0000 Subject: [PATCH] Dockerfile: verify the dependencies for the binaries Longhorn 8063 Signed-off-by: Derek Su --- package/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/Dockerfile b/package/Dockerfile index a6f541a16..6884a0ceb 100644 --- a/package/Dockerfile +++ b/package/Dockerfile @@ -131,14 +131,17 @@ COPY --from=builder \ /usr/sbin/ COPY --from=builder \ - /usr/local/lib64 \ - /usr/local/lib64 + /usr/local/lib64 \ + /usr/local/lib64 RUN ldconfig COPY package/bin/longhorn-instance-manager /usr/local/bin/ COPY package/instance-manager /usr/local/bin/ +# Verify the dependencies for the binaries +RUN ldd /usr/local/bin/* /usr/local/sbin/* /usr/sbin/* | grep "not found" && exit 1 || true + VOLUME /usr/local/bin # Add Tini