File tree 2 files changed +6
-6
lines changed
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
14
14
# Remove *.pyc files
15
15
RUN find ./python/lib/$runtime/site-packages -name \* .pyc -delete
16
16
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
-
21
17
# Remove botocore (40MB) to reduce package size. aws-xray-sdk
22
18
# installs it, while it's already provided by the Lambda Runtime.
23
19
RUN rm -rf ./python/lib/$runtime/site-packages/botocore*
24
20
RUN rm -rf ./python/lib/$runtime/site-packages/setuptools
25
21
RUN rm -rf ./python/lib/$runtime/site-packages/jsonschema/tests
26
22
RUN find . -name 'libddwaf.so' -delete
23
+ RUN rm -rf ./python/lib/$runtime/site-packages/urllib3
27
24
RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
28
25
RUN 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
29
29
30
30
FROM scratch
31
31
COPY --from=builder /build/python /
Original file line number Diff line number Diff line change 9
9
10
10
# 7 mb size limit
11
11
set -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)
14
14
15
15
16
16
LAYER_FILES_PREFIX=" datadog_lambda_py"
You can’t perform that action at this time.
0 commit comments