Skip to content

Commit 0fda51a

Browse files
committed
aggressively strip debug symbols
1 parent 376eb90 commit 0fda51a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,8 @@ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.h -delete
7878
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.hpp -delete
7979
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.pyx -delete
8080

81+
# Strip debug symbols using strip -g for all .so files in ddtrace
82+
RUN find ./python/lib/$runtime/site-packages/ddtrace -name "*.so" -exec strip -g {} \;
83+
8184
FROM scratch
8285
COPY --from=builder /build/python /

0 commit comments

Comments
 (0)