2021-03-11 15:49:07 +00:00
|
|
|
FROM python:3.9-slim-buster
|
2018-05-18 08:37:56 +00:00
|
|
|
|
|
|
|
ARG WHEEL_MITMPROXY
|
|
|
|
ARG WHEEL_BASENAME_MITMPROXY
|
|
|
|
|
2021-03-11 15:49:07 +00:00
|
|
|
RUN useradd -mU mitmproxy
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y gosu \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-05-18 08:37:56 +00:00
|
|
|
COPY $WHEEL_MITMPROXY /home/mitmproxy/
|
2021-03-11 15:49:07 +00:00
|
|
|
RUN pip3 install --no-cache-dir -U /home/mitmproxy/${WHEEL_BASENAME_MITMPROXY} \
|
|
|
|
&& rm -rf /home/mitmproxy/${WHEEL_BASENAME_MITMPROXY}
|
2018-05-18 08:37:56 +00:00
|
|
|
|
|
|
|
VOLUME /home/mitmproxy/.mitmproxy
|
|
|
|
|
2018-09-15 12:00:20 +00:00
|
|
|
COPY release/docker/docker-entrypoint.sh /usr/local/bin/
|
2018-05-18 08:37:56 +00:00
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
|
|
|
|
CMD ["mitmproxy"]
|