File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,18 @@ RUN pip install . -t ./python/lib/$runtime/site-packages
1414# Remove *.pyc files
1515RUN find ./python/lib/$runtime/site-packages -name \* .pyc -delete
1616
17- # Strip symbols from ddtrace's binaries.
18- # TODO (AJ): remove when ddtrace fixes this upstream
19- RUN find . -name '*.so' -exec strip -g {} \;
20-
2117# Remove botocore (40MB) to reduce package size. aws-xray-sdk
2218# installs it, while it's already provided by the Lambda Runtime.
2319RUN rm -rf ./python/lib/$runtime/site-packages/botocore*
2420RUN rm -rf ./python/lib/$runtime/site-packages/setuptools
2521RUN rm -rf ./python/lib/$runtime/site-packages/jsonschema/tests
2622RUN find . -name 'libddwaf.so' -delete
23+ RUN rm -rf ./python/lib/$runtime/site-packages/urllib3
2724RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
2825RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
26+ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/libdd_wrapper.so
27+ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/ddup/_ddup.*.so
28+ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
2929
3030FROM scratch
3131COPY --from=builder /build/python /
Original file line number Diff line number Diff line change 99
1010# 7 mb size limit
1111set -e
12- MAX_LAYER_COMPRESSED_SIZE_KB=$( expr 7 \* 1024)
13- MAX_LAYER_UNCOMPRESSED_SIZE_KB=$( expr 24 \* 1024)
12+ MAX_LAYER_COMPRESSED_SIZE_KB=$( expr 4 \* 1024)
13+ MAX_LAYER_UNCOMPRESSED_SIZE_KB=$( expr 13 \* 1024)
1414
1515
1616LAYER_FILES_PREFIX=" datadog_lambda_py"
You can’t perform that action at this time.
0 commit comments