Skip to content

Commit

Permalink
Dockerfile: verify the dependencies for the binaries
Browse files Browse the repository at this point in the history
Longhorn 8063

Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Jun 7, 2024
1 parent 790d82a commit 8f544a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f544a3

Please sign in to comment.