Copy examples into Docker image (#4447)

This commit is contained in:
Anatoli Babenia 2021-04-05 11:20:52 +03:00 committed by GitHub
parent 66c8ecc71e
commit a5ed1d377b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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) * 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-) * Major proxy protocol testing (@r00t-)
* Switch Docker image release to be based on Debian (@PeterDaveHello) * Switch Docker image release to be based on Debian (@PeterDaveHello)
* Added examples to Docker image (@abitrolly)
* --- TODO: add new PRs above this line --- * --- TODO: add new PRs above this line ---
* ... and various other fixes, documentation improvements, dependency version bumps, etc. * ... and various other fixes, documentation improvements, dependency version bumps, etc.

View File

@ -8,6 +8,10 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY $MITMPROXY_WHEEL /home/mitmproxy/ COPY $MITMPROXY_WHEEL /home/mitmproxy/
COPY examples /home/mitmproxy/
WORKDIR /home/mitmproxy
RUN pip3 install --no-cache-dir -U /home/mitmproxy/${MITMPROXY_WHEEL} \ RUN pip3 install --no-cache-dir -U /home/mitmproxy/${MITMPROXY_WHEEL} \
&& rm -rf /home/mitmproxy/${MITMPROXY_WHEEL} && rm -rf /home/mitmproxy/${MITMPROXY_WHEEL}