From a5ed1d377b0296dbc8956dfead32e457ab197cd9 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 5 Apr 2021 11:20:52 +0300 Subject: [PATCH] Copy examples into Docker image (#4447) --- CHANGELOG.md | 1 + release/docker/Dockerfile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7fb048b..57bfde17c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ If you depend on these features, please raise your voice in * Add option `export_preserve_original_ip` to force exported command to connect to IP from original request. Only supports curl at the moment. (@dkasak) * Major proxy protocol testing (@r00t-) * Switch Docker image release to be based on Debian (@PeterDaveHello) +* Added examples to Docker image (@abitrolly) * --- TODO: add new PRs above this line --- * ... and various other fixes, documentation improvements, dependency version bumps, etc. diff --git a/release/docker/Dockerfile b/release/docker/Dockerfile index ed76c5f34..d471c9178 100644 --- a/release/docker/Dockerfile +++ b/release/docker/Dockerfile @@ -8,6 +8,10 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* COPY $MITMPROXY_WHEEL /home/mitmproxy/ +COPY examples /home/mitmproxy/ + +WORKDIR /home/mitmproxy + RUN pip3 install --no-cache-dir -U /home/mitmproxy/${MITMPROXY_WHEEL} \ && rm -rf /home/mitmproxy/${MITMPROXY_WHEEL}