From dd5c44c0ff497025fd96835f458ddaddb818777c Mon Sep 17 00:00:00 2001 From: Alberto Vara Date: Fri, 27 Mar 2026 13:55:27 +0100 Subject: [PATCH 1/2] Remove unused ddtrace appsec packages Remove additional ddtrace appsec packages from site-packages. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6d9eb756..6f0c660a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,8 @@ 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 RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast +RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/sca +RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_shared RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/internal/test_visibility # Dogshell RUN rm -rf ./python/lib/$runtime/site-packages/datadog/dogshell From 7f469316427fa314b76b17e62a0f7066aca61b1d Mon Sep 17 00:00:00 2001 From: Alberto Vara Date: Mon, 6 Apr 2026 15:33:17 +0200 Subject: [PATCH 2/2] Update Dockerfile Co-authored-by: Brett Langdon --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index edf30bd1..1e112f81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,10 +33,12 @@ RUN pip install --no-cache-dir . -t ./python/lib/$runtime/site-packages 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 -RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast -RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/sca -RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_shared -RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/internal/test_visibility + +# Remove unsupported appsec modules +RUN rm -rf \ + ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast \ + ./python/lib/$runtime/site-packages/ddtrace/appsec/sca \ + ./python/lib/$runtime/site-packages/ddtrace/appsec/_shared # CI Visibility paths/integrations RUN rm -rf \