From 5d9b232c7d3d6aea8686ea598d5b09ef82ecd6f0 Mon Sep 17 00:00:00 2001 From: wahidw Date: Tue, 22 Jun 2021 04:57:26 +0000 Subject: [PATCH] Copying only the needed libraries to final image Signed-off-by: wahidw Change-Id: Id5fc0c7da6e6388994841b968cd0b09113744a26 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed2e751..d298761 100644 --- a/Dockerfile +++ b/Dockerfile @@ -201,8 +201,9 @@ RUN apt update && apt install -y iputils-ping net-tools curl tcpdump COPY --from=submgrbuild /manifests /manifests COPY --from=submgrbuild /opt/bin/submgr / -COPY --from=submgrbuild /usr/local/include /usr/local/include -COPY --from=submgrbuild /usr/local/lib /usr/local/lib +COPY --from=submgrbuild /usr/local/include/rmr /usr/local/include/ +COPY --from=submgrbuild /usr/local/lib/librmr* /usr/local/lib/ +COPY --from=submgrbuild /usr/local/lib/libe2ap* /usr/local/lib/ RUN ldconfig COPY run_submgr.sh / -- 2.16.6