2016-09-19 20:31:11 +02:00
|
|
|
FROM debian:stretch
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2014-10-09 19:30:38 +02:00
|
|
|
|
2016-01-20 09:55:59 +01:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2016-01-20 18:39:12 +01:00
|
|
|
libxslt1.1 \
|
|
|
|
libjpeg62-turbo \
|
|
|
|
python-minimal \
|
|
|
|
python-pip \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2016-01-20 09:55:59 +01:00
|
|
|
|
2016-01-20 18:39:12 +01:00
|
|
|
ENV LANG en_US.UTF-8
|
2016-01-20 09:55:59 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
|
2016-01-20 18:39:12 +01:00
|
|
|
RUN buildDeps=' \
|
|
|
|
gcc \
|
|
|
|
libjpeg-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt1-dev \
|
|
|
|
python-dev \
|
2016-09-21 02:31:29 +02:00
|
|
|
python-setuptools \
|
2016-01-20 18:39:12 +01:00
|
|
|
zlib1g-dev \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y ${buildDeps} --no-install-recommends \
|
2016-09-21 02:31:29 +02:00
|
|
|
&& pip install setuptools mitmproxy \
|
2016-01-20 18:39:12 +01:00
|
|
|
&& apt-get purge -y --auto-remove ${buildDeps} \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2014-10-09 19:30:38 +02:00
|
|
|
|
2016-09-21 02:31:29 +02:00
|
|
|
ENV HOME /home/mitm
|
|
|
|
RUN useradd --create-home --home-dir $HOME mitm \
|
|
|
|
&& chown -R mitm:mitm $HOME
|
|
|
|
|
2016-01-20 09:55:59 +01:00
|
|
|
USER mitm
|
2016-01-20 18:39:12 +01:00
|
|
|
|
|
|
|
ENTRYPOINT [ "mitmproxy" ]
|