From c3ba0dac454372086560029d2fc6148a7e36622f Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 19 Dec 2023 16:17:17 +0100 Subject: [PATCH] set termlog_verbosity config to $LOG_LEVEL --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0572d64..b7a7a6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,12 @@ RUN --mount=type=cache,target=/root/.cache/pip \ COPY . . -CMD ["mitmdump", "-s", "addons.py"] +ENV LOG_LEVEL=info + +CMD [\ + "/bin/sh", "-u", "-c", \ + "mitmdump -s addons.py --set termlog_verbosity=$LOG_LEVEL" \ +] # When sending an HTTP request with `Host: localhost`, mitmproxy will respond with 502. # So we only check if there's a process listening on that port.