mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
51 lines
1.2 KiB
Docker
51 lines
1.2 KiB
Docker
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
ENV LANG=en_US.UTF-8
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
# add our user first to make sure the ID get assigned consistently,
|
|
# regardless of whatever dependencies get added
|
|
RUN addgroup -S mitmproxy && adduser -S -G mitmproxy mitmproxy \
|
|
&& apk add --no-cache \
|
|
su-exec \
|
|
git \
|
|
g++ \
|
|
libffi \
|
|
libffi-dev \
|
|
libjpeg-turbo \
|
|
libjpeg-turbo-dev \
|
|
libstdc++ \
|
|
libxml2 \
|
|
libxml2-dev \
|
|
libxslt \
|
|
libxslt-dev \
|
|
openssl \
|
|
openssl-dev \
|
|
python3 \
|
|
python3-dev \
|
|
zlib \
|
|
zlib-dev \
|
|
&& python3 -m ensurepip \
|
|
&& LDFLAGS=-L/lib pip3 install -r /tmp/requirements.txt \
|
|
&& apk del --purge \
|
|
git \
|
|
g++ \
|
|
libffi-dev \
|
|
libjpeg-turbo-dev \
|
|
libxml2-dev \
|
|
libxslt-dev \
|
|
openssl-dev \
|
|
python3-dev \
|
|
zlib-dev \
|
|
&& rm /tmp/requirements.txt \
|
|
&& rm -rf ~/.cache/pip
|
|
|
|
VOLUME /home/mitmproxy/.mitmproxy
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
EXPOSE 8080 8081
|
|
CMD ["mitmproxy"]
|