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.