From 0cb162e3c66c7901ae881e6eb92a283adc926546 Mon Sep 17 00:00:00 2001 From: AJ Stuyvenberg Date: Tue, 31 Oct 2023 08:45:14 -0400 Subject: [PATCH] feat: Fix comments in dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7bd1f6cf..2cf569a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,12 @@ RUN pip install . -t ./python/lib/$runtime/site-packages # Remove *.pyc files RUN find ./python/lib/$runtime/site-packages -name \*.pyc -delete -# Remove botocore (40MB) to reduce package size. aws-xray-sdk -# installs it, while it's already provided by the Lambda Runtime. +# Strip symbols from ddtrace's binaries. +# TODO (AJ): remove when ddtrace fixes this upstream RUN find . -name '*.so' -exec strip -g {} \; +# Remove botocore (40MB) to reduce package size. aws-xray-sdk +# installs it, while it's already provided by the Lambda Runtime. RUN rm -rf ./python/lib/$runtime/site-packages/botocore* RUN rm -rf ./python/lib/$runtime/site-packages/setuptools RUN rm -rf ./python/lib/$runtime/site-packages/jsonschema/tests