Skip to content

Commit 1ad40fc

Browse files
committed
Remove more things from the ddtrace package
Signed-off-by: Juanjo Alvarez <juanjo.alvarezmartinez@datadoghq.com>
1 parent 0f4c059 commit 1ad40fc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_ast/iastpatc
3737
RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/_vendor
3838
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
3939
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
40+
RUN rm -rf ./python/lib/$runtime/site-packages/ddtrace/internal/test_visibility
41+
RUN find ./python/lib/$runtime/site-packages -name "CMakeLists.txt" -delete
42+
RUN find ./python/lib/$runtime/site-packages -name "*.pyi" -delete
43+
RUN find ./python/lib/$runtime/site-packages -name "*.md" -delete
44+
RUN find ./python/lib/$runtime/site-packages -name "*.sh" -delete
45+
# Dogshell
46+
RUN rm -rf ./python/lib/$runtime/site-packages/datadog/dogshell
47+
RUN rm -rf ./python/lib/$runtime/site-packages/bin/dog*
48+
4049
# remove *.dist-info directories except any entry_points.txt files and METADATA files required for Appsec Software Composition Analysis
4150
RUN find ./python/lib/$runtime/site-packages/*.dist-info \
4251
-type f \
@@ -50,7 +59,8 @@ RUN rm -rf \
5059
./python/lib/$runtime/site-packages/urllib3* \
5160
./python/lib/$runtime/site-packages/certifi* \
5261
./python/lib/$runtime/site-packages/idna* \
53-
./python/lib/$runtime/site-packages/charset_normalizer*
62+
./python/lib/$runtime/site-packages/charset_normalizer* \
63+
./python/lib/$runtime/site-packages/*__mypyc*.so # from charset_normalizer
5464

5565
# Precompile all .pyc files and remove .py files. This speeds up load time.
5666
# Compile with optimization level 2 (-OO) and PYTHONNODEBUGRANGES=1 to redtce

0 commit comments

Comments
 (0)