mitmproxy/release/docker/Dockerfile

26 lines
618 B
Docker
Raw Normal View History

2022-03-19 14:38:30 +00:00
FROM python:3.10-bullseye as wheelbuilder
2018-05-18 08:37:56 +00:00
ARG MITMPROXY_WHEEL
COPY $MITMPROXY_WHEEL /wheels/
RUN pip install wheel && pip wheel --wheel-dir /wheels /wheels/${MITMPROXY_WHEEL}
2022-03-19 14:38:30 +00:00
FROM python:3.10-slim-bullseye
2018-05-18 08:37:56 +00:00
RUN useradd -mU mitmproxy
RUN apt-get update \
&& apt-get install -y --no-install-recommends gosu \
&& rm -rf /var/lib/apt/lists/*
COPY --from=wheelbuilder /wheels /wheels
RUN pip install --no-index --find-links=/wheels mitmproxy
RUN rm -rf /wheels
2018-05-18 08:37:56 +00:00
VOLUME /home/mitmproxy/.mitmproxy
COPY docker-entrypoint.sh /usr/local/bin/
2018-05-18 08:37:56 +00:00
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 8080 8081
CMD ["mitmproxy"]