Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ RUN rm -rf \
./python/lib/$runtime/site-packages/ddtrace/appsec/_iast \
./python/lib/$runtime/site-packages/ddtrace/appsec/_shared

# Minify the App and API Protection rules (~454 kB pretty-printed, ~278 kB
# minified). ddtrace passes the file's bytes to libddwaf, which parses the JSON,
# so whitespace doesn't matter.
RUN python -c "import json, sys; p = sys.argv[1]; d = json.load(open(p, encoding='utf-8')); \
open(p, 'w', encoding='utf-8').write(json.dumps(d, separators=(',', ':'), ensure_ascii=False))" \
./python/lib/$runtime/site-packages/ddtrace/appsec/rules.json

# CI Visibility paths/integrations
RUN rm -rf \
./python/lib/$runtime/site-packages/ddtrace/contrib/internal/coverage/ \
Expand Down
Loading