Skip to content

Commit b937626

Browse files
committed
Remove requests and all its dependencies.
1 parent e40f4a8 commit b937626

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN rm -rf ./python/lib/$runtime/site-packages/botocore*
2222
RUN rm -rf ./python/lib/$runtime/site-packages/setuptools
2323
RUN rm -rf ./python/lib/$runtime/site-packages/jsonschema/tests
2424
RUN find . -name 'libddwaf.so' -delete
25-
RUN rm -rf ./python/lib/$runtime/site-packages/urllib3*
2625
RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracking/*.so
2726
RUN rm ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
2827
RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/libdd_wrapper*.so
@@ -32,6 +31,14 @@ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/st
3231
RUN find ./python/lib/$runtime/site-packages/*.dist-info -not -name "entry_points.txt" -type f -delete
3332
RUN find ./python/lib/$runtime/site-packages -type d -empty -delete
3433

34+
# Remove requests and dependencies
35+
RUN rm -rf \
36+
./python/lib/$runtime/site-packages/requests* \
37+
./python/lib/$runtime/site-packages/urllib3* \
38+
./python/lib/$runtime/site-packages/certifi* \
39+
./python/lib/$runtime/site-packages/idna* \
40+
./python/lib/$runtime/site-packages/charset_normalizer*
41+
3542
# Precompile all .pyc files and remove .py files. This speeds up load time.
3643
# Compile with optimization level 2 (-OO) and PYTHONNODEBUGRANGES=1 to redtce
3744
# size of .pyc files.

0 commit comments

Comments
 (0)