Copying only the needed libraries to final image 66/6366/1
authorwahidw <abdulwahid.w@nokia.com>
Tue, 22 Jun 2021 04:57:26 +0000 (04:57 +0000)
committerwahidw <abdulwahid.w@nokia.com>
Tue, 22 Jun 2021 04:57:26 +0000 (04:57 +0000)
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: Id5fc0c7da6e6388994841b968cd0b09113744a26

Dockerfile

index ed2e751..d298761 100644 (file)
@@ -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 /