mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-03 19:00:42 +02:00
Redoing mitmproxy for the ubuntu image to workaround building pillow==3.0 on Alpine Linux
This commit is contained in:
parent
20edea8c9d
commit
d3980791ef
@ -1,19 +1,31 @@
|
|||||||
FROM alpine:latest
|
FROM ubuntu:latest
|
||||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python \
|
||||||
|
python-dev \
|
||||||
|
python-virtualenv
|
||||||
|
|
||||||
|
RUN buildDeps=' \
|
||||||
|
libjpeg8-dev \
|
||||||
|
libffi-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libxml2-dev \
|
||||||
|
libxslt1-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
' \
|
||||||
|
&& set -x \
|
||||||
|
&& apt-get install -y ${buildDeps} --no-install-recommends \
|
||||||
|
&& useradd -m mitm \
|
||||||
|
&& su -c "virtualenv /home/mitm/mitmproxy" mitm \
|
||||||
|
&& su -c "/home/mitm/mitmproxy/bin/pip install Pillow==3.0 mitmproxy" mitm \
|
||||||
|
&& apt-get purge -y --auto-remove ${buildDeps} build-essential gcc \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENV HOME /home/mitm
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
||||||
RUN apk update && apk add \
|
USER mitm
|
||||||
build-base \
|
CMD [ "/home/mitm/mitmproxy/bin/python", "/home/mitm/mitmproxy/bin/mitmproxy" ]
|
||||||
ca-certificates \
|
|
||||||
libffi-dev \
|
|
||||||
libxml2-dev \
|
|
||||||
libxslt-dev \
|
|
||||||
openssl-dev \
|
|
||||||
python \
|
|
||||||
python-dev \
|
|
||||||
py-pip \
|
|
||||||
&& rm -rf /var/cache/apk/* \
|
|
||||||
&& pip install pillow==2.8.0 mitmproxy
|
|
||||||
|
|
||||||
CMD [ "mitmproxy" ]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user