We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strip -g
1 parent 3b5260d commit 33fcbceCopy full SHA for 33fcbce
Dockerfile
@@ -72,5 +72,11 @@ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.h -delete
72
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.hpp -delete
73
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.pyx -delete
74
75
+# Strip debug symbols using strip -g for all .so files in ddtrace. This is to
76
+# reduce the size when ddtrace is built from sources. The release wheels are
77
+# already stripped of debug symbols. We should revisit this when serverless
78
+# benchmark uses pre-built wheels instead of building from sources.
79
+RUN find ./python/lib/$runtime/site-packages/ddtrace -name "*.so" -exec strip -g {} \;
80
+
81
FROM scratch
82
COPY --from=builder /build/python /
0 commit comments