mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
39e618c3cb
Signed-off-by: Jess Frazelle <me@jessfraz.com>
39 lines
782 B
Docker
39 lines
782 B
Docker
FROM debian:stretch
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libxslt1.1 \
|
|
libjpeg62-turbo \
|
|
python-minimal \
|
|
python-pip \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV LANG en_US.UTF-8
|
|
EXPOSE 8080
|
|
|
|
RUN buildDeps=' \
|
|
gcc \
|
|
libjpeg-dev \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
libxml2-dev \
|
|
libxslt1-dev \
|
|
python-dev \
|
|
python-setuptools \
|
|
zlib1g-dev \
|
|
' \
|
|
&& set -x \
|
|
&& apt-get update && apt-get install -y ${buildDeps} --no-install-recommends \
|
|
&& pip install setuptools mitmproxy \
|
|
&& apt-get purge -y --auto-remove ${buildDeps} \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV HOME /home/mitm
|
|
RUN useradd --create-home --home-dir $HOME mitm \
|
|
&& chown -R mitm:mitm $HOME
|
|
|
|
USER mitm
|
|
|
|
ENTRYPOINT [ "mitmproxy" ]
|