ldd fails

This commit is contained in:
Thomas Quandalle
2022-06-18 17:46:34 +02:00
parent 22ee1e8b4f
commit 32fdfb86d5

View File

@@ -56,6 +56,7 @@ RUN cp -r /agent ./
# This will collect dependent libraries so they're later copied to the final image
RUN /agent/main version
RUN ldd /agent/main | tr -s '[:blank:]' '\n'
RUN ldd /agent/main | tr -s '[:blank:]' '\n' | grep '^/' | \
xargs -I % sh -c 'mkdir -p $(dirname ./%); cp % ./%;'