Skip to content
5 changes: 3 additions & 2 deletions Dockerfile
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,11 +73,12 @@ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.h -delete
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.hpp -delete
RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.pyx -delete

# Strip debug symbols using strip -g for all .so files in ddtrace. This is to
# Strip debug symbols and symbols that are not needed for relocation
# processing using strip --strip-unneeded for all .so files. This is to
# reduce the size when ddtrace is built from sources. The release wheels are
# already stripped of debug symbols. We should revisit this when serverless
# benchmark uses pre-built wheels instead of building from sources.
RUN find ./python/lib/$runtime/site-packages/ddtrace -name "*.so" -exec strip -g{} \;
RUN find ./python/lib/$runtime/site-packages -name "*.so" -exec strip --strip-unneeded{} \;

FROM scratch
COPY --from=builder /build/python /
Loading