2019-07-26 19:55:34 +02:00
|
|
|
FROM debian:bullseye-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2018-12-29 02:37:47 +01:00
|
|
|
|
2017-02-10 22:34:51 +01:00
|
|
|
ENV LANG=en_US.UTF-8
|
2014-10-09 19:30:38 +02:00
|
|
|
|
2018-12-29 02:37:47 +01:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Add our user first to make sure the ID get assigned consistently,
|
|
|
|
# regardless of whatever dependencies get added.
|
|
|
|
RUN groupadd -r mitmproxy && useradd -r -g mitmproxy mitmproxy \
|
|
|
|
&& mkdir -p /home/mitmproxy/.mitmproxy \
|
|
|
|
&& chown -R mitmproxy:mitmproxy /home/mitmproxy
|
|
|
|
|
|
|
|
# Download the binaries.
|
|
|
|
ENV MITMPROXY_VERSION 4.0.4
|
|
|
|
RUN curl -sSL "https://snapshots.mitmproxy.org/${MITMPROXY_VERSION}/mitmproxy-${MITMPROXY_VERSION}-linux.tar.gz" | tar -vxzC /usr/local/bin
|
2016-01-20 09:55:59 +01:00
|
|
|
|
2017-02-10 22:34:51 +01:00
|
|
|
VOLUME /home/mitmproxy/.mitmproxy
|
2014-10-09 19:30:38 +02:00
|
|
|
|
2017-02-10 22:34:51 +01:00
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
2016-09-21 02:31:29 +02:00
|
|
|
|
2017-02-10 22:34:51 +01:00
|
|
|
EXPOSE 8080 8081
|
2018-12-29 02:37:47 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
2017-02-10 22:34:51 +01:00
|
|
|
CMD ["mitmproxy"]
|