Skip to content

Commit d0c354e

Browse files
strip unneeded
1 parent 310d734 commit d0c354e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ RUN find ./python/lib/$runtime/site-packages/ddtrace -name \*.pyx -delete
7777
# reduce the size when ddtrace is built from sources. The release wheels are
7878
# already stripped of debug symbols. We should revisit this when serverless
7979
# benchmark uses pre-built wheels instead of building from sources.
80-
RUN find ./python/lib/$runtime/site-packages -name "*.so" -exec strip -g {} \;
80+
RUN find ./python/lib/$runtime/site-packages -name "*.so" -exec strip --strip-unneeded {} \;
8181
# RUN find ./python/lib/$runtime/site-packages/ddtrace -name "*.so" -exec strip -g {} \;
8282

8383
FROM scratch

pub_layer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
layer_arn=$(
22
aws-vault exec sso-serverless-sandbox-account-admin -- \
3-
aws lambda publish-layer-version --layer-name "Python312-discard-all-rithika" \
3+
aws lambda publish-layer-version --layer-name "Python312-strip-debug-rithika" \
44
--description "Datadog Tracer Lambda Layer for Python" \
5-
--zip-file "fileb://./discard-all.zip" \
5+
--zip-file "fileb://./.layers/datadog_lambda_py-arm64-3.12.zip" \
66
--region "us-west-2" \
77
--output json \
88
| jq -r '.LayerVersionArn')

0 commit comments

Comments
 (0)