docker run --restart=unless-stopped -d --name adblock -p 8118:8118 trigus42/mitm-adblock
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag trigus42/mitm-adblock .
FROM alpine:latest
RUN apk update; \
apk upgrade
RUN apk add --no-cache bash wget git; \
apk add --no-cache python3 py3-pip ; \
# general build tools
apk add --no-cache g++ python3-dev; \
# for pyre2
apk add --no-cache re2-dev libre2; \
# for mitmproxy
apk add --no-cache libffi-dev openssl-dev; \
# clean up
rm -rf /var/cache/apk/* /tmp/*
RUN pip install mitmproxy adblockparser pyre2
RUN mkdir /etc/mitm-adblock
RUN git clone https://github.com/epitron/mitm-adblock.git /etc/mitm-adblock/
# add entrypoint file
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# set build date
RUN date >/build-date.txt
#!/bin/bash
echo "Build date: $(cat /build-date.txt)"
cd /etc/mitm-adblock/
./update-blocklists
./go
Content type
Image
Digest
Size
54.5 MB
Last updated
about 5 years ago
docker pull trigus42/mitm-adblock