This commit is contained in:
Thomas Quandalle
2022-06-17 23:14:49 +02:00
parent d999bc787f
commit f4c6cbfcf3

View File

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