Skip to content

Commit 704a741

Browse files
authored
chore: strip unneeded symbols from binaries and shared libraries (#6589)
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
1 parent b37d07d commit 704a741

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ COPY --from=universe-vehicle-system-devel /opt/autoware /opt/autoware
525525
COPY --from=universe-visualization-devel /opt/autoware /opt/autoware
526526
COPY --from=universe-api-devel /opt/autoware /opt/autoware
527527

528+
# strip unneeded symbols from binaries in /opt/autoware
529+
RUN find /opt/autoware -type f \( -executable -o -name "*.so" \) -exec strip --strip-unneeded --remove-section=.comment --remove-section=.note {} \;
530+
528531
# hadolint ignore=SC1091
529532
RUN --mount=type=cache,target="${CCACHE_DIR}" \
530533
--mount=type=bind,source=src/sensor_component,target=/autoware/src/sensor_component \

0 commit comments

Comments
 (0)